Allow use of numpad enter for console and chat

This commit is contained in:
ζeh Matt 2019-03-21 13:11:06 -07:00 committed by Michael Steenbeek
parent bba672c235
commit 5d5373b63c
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@
- Fix: [#7884] Unfinished preserved rides can be demolished with quick demolish.
- Fix: [#8873] Potential crash when placing footpaths.
- Fix: [#8900] Peep tracking is not synchronized.
- Improved: Allow the use of numpad enter key for console and chat.
0.2.2 (2019-03-13)
------------------------------------------------------------------------

View File

@ -36,6 +36,7 @@ static void input_handle_console(int32_t key)
input = CONSOLE_INPUT_LINE_CLEAR;
break;
case SDL_SCANCODE_RETURN:
case SDL_SCANCODE_KP_ENTER:
input = CONSOLE_INPUT_LINE_EXECUTE;
break;
case SDL_SCANCODE_UP:
@ -67,6 +68,7 @@ static void input_handle_chat(int32_t key)
input = CHAT_INPUT_CLOSE;
break;
case SDL_SCANCODE_RETURN:
case SDL_SCANCODE_KP_ENTER:
input = CHAT_INPUT_SEND;
break;
}