mirror of https://github.com/ioquake/ioq3.git
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
|
@ -667,7 +667,7 @@ void Console_Key (int key) {
|
||||||
|
|
||||||
// command history (ctrl-p ctrl-n for unix style)
|
// 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 ) ) {
|
( ( tolower(key) == 'p' ) && keys[K_CTRL].down ) ) {
|
||||||
if ( nextHistoryLine - historyLine < COMMAND_HISTORY
|
if ( nextHistoryLine - historyLine < COMMAND_HISTORY
|
||||||
&& historyLine > 0 ) {
|
&& historyLine > 0 ) {
|
||||||
|
@ -677,7 +677,7 @@ void Console_Key (int key) {
|
||||||
return;
|
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 ) ) {
|
( ( tolower(key) == 'n' ) && keys[K_CTRL].down ) ) {
|
||||||
historyLine++;
|
historyLine++;
|
||||||
if (historyLine >= nextHistoryLine) {
|
if (historyLine >= nextHistoryLine) {
|
||||||
|
|
Loading…
Reference in New Issue