hedgewars/uChat.pas
changeset 7117 7df6386f7090
parent 6954 a61458a81480
child 7188 580cd247511e
child 7722 1518827049ed
--- a/hedgewars/uChat.pas	Wed May 23 19:56:14 2012 +0200
+++ b/hedgewars/uChat.pas	Wed May 23 21:16:44 2012 +0200
@@ -277,7 +277,6 @@
 var i, btw: integer;
     utf8: shortstring;
 begin
-
 if Key <> 0 then
     case Key of
         {Backspace}
@@ -293,6 +292,7 @@
                 FreezeEnterKey;
                 SDL_EnableKeyRepeat(0,0);
                 GameState:= gsGame;
+                ResetKbd;
                 end;
         {Return}
         3, 13, 271: begin
@@ -304,6 +304,7 @@
             FreezeEnterKey;
             SDL_EnableKeyRepeat(0,0);
             GameState:= gsGame;
+            ResetKbd;
             end;
     else
         if (Key < $80) then