mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Merge pull request #2944 from Overv/fix-title-screen-text-input
Fix enter not working for text inputs in the title screen (fixes #2941)
This commit is contained in:
12
src/input.c
12
src/input.c
@@ -1437,9 +1437,15 @@ void title_handle_keyboard_input()
|
||||
w = window_find_by_class(WC_CHANGE_KEYBOARD_SHORTCUT);
|
||||
if (w != NULL) {
|
||||
keyboard_shortcut_set(key);
|
||||
}
|
||||
else if (key == gShortcutKeys[SHORTCUT_SCREENSHOT]) {
|
||||
keyboard_shortcut_handle_command(SHORTCUT_SCREENSHOT);
|
||||
} else {
|
||||
w = window_find_by_class(WC_TEXTINPUT);
|
||||
if (w != NULL) {
|
||||
window_text_input_key(w, key);
|
||||
}
|
||||
|
||||
if (key == gShortcutKeys[SHORTCUT_SCREENSHOT]) {
|
||||
keyboard_shortcut_handle_command(SHORTCUT_SCREENSHOT);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user