--- 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);