forked from rosebudai/OpenRCT2-Web
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:
commit
27de4fd060
1 file changed
+9
-3
+9
-3
@@ -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