hedgewars/uInputHandler.pas
changeset 7118 dcdbb6fcc924
parent 7117 7df6386f7090
child 7140 29948153fda2
--- a/hedgewars/uInputHandler.pas	Wed May 23 21:16:44 2012 +0200
+++ b/hedgewars/uInputHandler.pas	Wed May 23 21:19:15 2012 +0200
@@ -84,7 +84,8 @@
 
 if CurrentBinds[code][0] <> #0 then
     begin
-    if (code > 3) and (tkbd[code] <> 0) and not ((CurrentBinds[code] = 'put') or (CurrentBinds[code] = 'ammomenu') or (CurrentBinds[code] = '+cur_u') or (CurrentBinds[code] = '+cur_d') or (CurrentBinds[code] = '+cur_l') or (CurrentBinds[code] = '+cur_r')) then hideAmmoMenu:= true;
+    if (code > 3) and (KeyDown) and not ((CurrentBinds[code] = 'put') or (CurrentBinds[code] = 'ammomenu') or (CurrentBinds[code] = '+cur_u') or (CurrentBinds[code] = '+cur_d') or (CurrentBinds[code] = '+cur_l') or (CurrentBinds[code] = '+cur_r')) then hideAmmoMenu:= true;
+
     if (KeyDown) then
         begin
         ParseCommand(CurrentBinds[code], Trusted);