hedgewars/hwengine.pas
branchqmlfrontend
changeset 10886 99273b7afbff
parent 10748 dc587913987c
parent 10836 0b415bc2e0eb
child 11071 3851ce4f2061
--- a/hedgewars/hwengine.pas	Mon Feb 16 22:33:15 2015 +0300
+++ b/hedgewars/hwengine.pas	Thu Apr 02 21:09:56 2015 +0300
@@ -162,7 +162,7 @@
                     if GameState = gsChat then
                         begin
                     // sdl on iphone supports only ashii keyboards and the unicode field is deprecated in sdl 1.3
-                        KeyPressChat(SDL_GetKeyFromScancode(event.key.keysym.sym), event.key.keysym.sym); //TODO correct for keymodifiers
+                        KeyPressChat(SDL_GetKeyFromScancode(event.key.keysym.sym), event.key.keysym.sym, event.key.keysym.modifier);
                         end
                     else
                         if GameState >= gsGame then ProcessKey(event.key);
@@ -208,7 +208,7 @@
 {$ELSE}
                 SDL_KEYDOWN:
                     if GameState = gsChat then
-                        KeyPressChat(event.key.keysym.unicode, event.key.keysym.sym)
+                        KeyPressChat(event.key.keysym.unicode, event.key.keysym.sym, event.key.keysym.modifier)
                     else
                         if GameState >= gsGame then ProcessKey(event.key);
                 SDL_KEYUP: