hedgewars/hwengine.pas
changeset 10836 0b415bc2e0eb
parent 10633 2f062fac5791
child 10886 99273b7afbff
child 11025 999afa63035f
--- a/hedgewars/hwengine.pas	Sat Feb 28 22:20:53 2015 +0100
+++ b/hedgewars/hwengine.pas	Sun Mar 01 04:15:11 2015 +0100
@@ -173,7 +173,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);
@@ -219,7 +219,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: