# HG changeset patch # User Xeli # Date 1337800755 -7200 # Node ID dcdbb6fcc92412a3d5e098b764cd0ee0c7033d7a # Parent 7df6386f70901bcf67cb709875be631f5d0eedea wops add this too diff -r 7df6386f7090 -r dcdbb6fcc924 hedgewars/uInputHandler.pas --- 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);