mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Don't interpret K_KP_DOWNARROW and K_KP_UPARROW in console.
These map to the 2 and 8 on the keypad which makes it impossible to use them on the console for entering numbers. This is especially important for AZERTY layouts where the number keys are not directly accessible in the first row and using the keypad is more convenient.
This commit is contained in:
parent
cd41690fc3
commit
12af3970c2
1 changed files with 2 additions and 2 deletions
|
@ -667,7 +667,7 @@ void Console_Key (int key) {
|
|||
|
||||
// command history (ctrl-p ctrl-n for unix style)
|
||||
|
||||
if ( (key == K_MWHEELUP && keys[K_SHIFT].down) || ( key == K_UPARROW ) || ( key == K_KP_UPARROW ) ||
|
||||
if ( (key == K_MWHEELUP && keys[K_SHIFT].down) || key == K_UPARROW ||
|
||||
( ( tolower(key) == 'p' ) && keys[K_CTRL].down ) ) {
|
||||
if ( nextHistoryLine - historyLine < COMMAND_HISTORY
|
||||
&& historyLine > 0 ) {
|
||||
|
@ -677,7 +677,7 @@ void Console_Key (int key) {
|
|||
return;
|
||||
}
|
||||
|
||||
if ( (key == K_MWHEELDOWN && keys[K_SHIFT].down) || ( key == K_DOWNARROW ) || ( key == K_KP_DOWNARROW ) ||
|
||||
if ( (key == K_MWHEELDOWN && keys[K_SHIFT].down) || key == K_DOWNARROW ||
|
||||
( ( tolower(key) == 'n' ) && keys[K_CTRL].down ) ) {
|
||||
historyLine++;
|
||||
if (historyLine >= nextHistoryLine) {
|
||||
|
|
Loading…
Reference in a new issue