allow to send chat messages with numpad enter key too (regression?)
authorkoda
Sun, 07 Jul 2013 14:45:08 +0200
changeset 9319 492a0ad67e33
parent 9317 a04c30940d2d
child 9321 1d56051f70c8
allow to send chat messages with numpad enter key too (regression?)
hedgewars/SDLh.pas
hedgewars/uChat.pas
--- a/hedgewars/SDLh.pas	Sat Jul 06 19:29:18 2013 +0200
+++ b/hedgewars/SDLh.pas	Sun Jul 07 14:45:08 2013 +0200
@@ -308,6 +308,7 @@
     SDLK_q         = 113;
     SDLK_w         = 119;
     SDLK_DELETE    = 127;
+    SDLK_KP_ENTER  = 271;
     SDLK_UP        = 273;
     SDLK_DOWN      = 274;
     SDLK_RIGHT     = 275;
--- a/hedgewars/uChat.pas	Sat Jul 06 19:29:18 2013 +0200
+++ b/hedgewars/uChat.pas	Sun Jul 07 14:45:08 2013 +0200
@@ -327,7 +327,7 @@
                 SetLine(InputStr, '', true)
             else CleanupInput
             end;
-        SDLK_RETURN:
+        SDLK_RETURN, SDLK_KP_ENTER:
             begin
             if Length(InputStr.s) > 0 then
                 begin