mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-29 11:12:30 +00:00
Permit KEY_ESCAPE to close the typing view as well.
Preparation for reworking Addons menu -- I have been caught in these virtual keyboard popups without remembering how to escape a little too often for comfort.
This commit is contained in:
parent
36797e6bde
commit
86b1e57f32
1 changed files with 2 additions and 2 deletions
|
|
@ -1213,7 +1213,7 @@ static void M_UpdateKeyboardX(void)
|
|||
static boolean M_IsTypingKey(INT32 key)
|
||||
{
|
||||
return key == KEY_BACKSPACE || key == KEY_ENTER ||
|
||||
key == KEY_DEL || isprint(key);
|
||||
key == KEY_ESCAPE || key == KEY_DEL || isprint(key);
|
||||
}
|
||||
|
||||
static void M_MenuTypingInput(INT32 key)
|
||||
|
|
@ -1274,7 +1274,7 @@ static void M_MenuTypingInput(INT32 key)
|
|||
}
|
||||
|
||||
// OTHERWISE, process keyboard inputs for typing!
|
||||
if (key == KEY_ENTER)
|
||||
if (key == KEY_ENTER || key == KEY_ESCAPE)
|
||||
{
|
||||
menutyping.menutypingclose = true; // close menu.
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue