X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fsdl%2Fg_system.pas;h=25e95eca8841d5a987f5e87bb218bc0cb4f26fb9;hb=6fc3ad181843ea8ee8c1be9060fda475b8d906b4;hp=81b1ca3dc6ade228ac39c49b5d7cbc1e41409252;hpb=8e694e6ddeb42110a00233d7ff7345c57ee5d90d;p=d2df-sdl.git diff --git a/src/game/sdl/g_system.pas b/src/game/sdl/g_system.pas index 81b1ca3..25e95ec 100644 --- a/src/game/sdl/g_system.pas +++ b/src/game/sdl/g_system.pas @@ -263,11 +263,8 @@ implementation begin KeyPress(key) end; - if down and (ev.keysym.unicode <= $44F) then - begin - if IsPrintable1251(ch) then - CharPress(ch) - end + if down and IsValid1251(ev.keysym.unicode) and IsPrintable1251(ch) then + CharPress(ch) end; function sys_HandleInput (): Boolean;