From ad05d0b5f079483118a17aef0ab18eca22ab93d0 Mon Sep 17 00:00:00 2001 From: Alexander Overvoorde Date: Mon, 15 Feb 2016 02:45:57 +0100 Subject: [PATCH] Fix enter not working for text inputs in the title screen (fixes #2941) --- src/input.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/input.c b/src/input.c index a715fb6abe..e815ebe314 100644 --- a/src/input.c +++ b/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); + } } } }