Skip to content
Permalink
Browse files

client: check for numeric keypad toggle while typing in CGAME

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 c26eb0e212a277a771e7754b28933bb52457f955
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/client/cl_keys.c
@@ -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++)
@@ -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 ... :)
@@ -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);
}

0 comments on commit c26eb0e

Please sign in to comment.
You can’t perform that action at this time.