Skip to content

Commit

Permalink
client: check for numeric keypad toggle while typing in CGAME
Browse files Browse the repository at this point in the history
Intermission chat and name field edit in loadpanel were interpreting both number and cursor position
  • Loading branch information
Aranud committed Oct 9, 2019
1 parent f1d7039 commit c26eb0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client/cl_keys.c
Expand Up @@ -1122,9 +1122,9 @@ void Key_Bindlist_f(void)
{
int i;
int freeKeys = 0;

Com_Printf("key bind\n");

Com_Printf("-----------------------------------\n");

for (i = 0 ; i < MAX_KEYS ; i++)
Expand All @@ -1146,7 +1146,7 @@ void Key_Bindlist_f(void)
}
}
}

Com_Printf("-----------------------------------\n");
Com_Printf("%i free keys available.\n", freeKeys);
Com_Printf("Enter /bindlist -f to see free keys.\n"); // or any other param ... :)
Expand Down Expand Up @@ -1270,7 +1270,7 @@ void CL_KeyEvent(int key, qboolean down, unsigned time)
}

// special handling for numbers of numeric keypad & NUM pressed
if (IN_IsNumLockDown() && (cls.keyCatchers & (KEYCATCH_CONSOLE | KEYCATCH_UI)) && down)
if (IN_IsNumLockDown() && down)
{
onlybinds = CL_NumPadEvent(key);
}
Expand Down

0 comments on commit c26eb0e

Please sign in to comment.