diff --git a/src/game/g_console.pas b/src/game/g_console.pas
index 64b08642029b320c93a0377ae8a56526b94eb821..b2194ba719e6e5127995bd8dc9453628556a1356 100644 (file)
--- a/src/game/g_console.pas
+++ b/src/game/g_console.pas
i := 0;
while (n >= 1) and (i < e_MaxInputKeys) do
begin
- if g_Console_MatchBind(i, down, up) then
+ if (i < VK_FIRSTKEY) or (i > VK_LASTKEY) then (* never show virtual keys in gui *)
begin
- result := i;
- dec(n)
+ if g_Console_MatchBind(i, down, up) then
+ begin
+ result := i;
+ dec(n)
+ end;
end;
inc(i)
end;