From 9336a924065553d94732941900375385284c47ee Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Wed, 29 Apr 2020 11:49:01 +0200 Subject: switch: fix software keyboard validation event, fix paths --- src/gui/sdlinput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index b6fabd8a5..c4c7c9741 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -139,7 +139,7 @@ void SDLInput::pushInput(const SDL_Event &event) MouseInput mouseInput; #ifdef __SWITCH__ - // send an escape/cancel key on keyboard dismiss event + // send an enter/select key on keyboard dismiss event bool visible = SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE; if(visible) { @@ -147,7 +147,7 @@ void SDLInput::pushInput(const SDL_Event &event) } else if(!keyboardClosed) { - simulateKey(KeyValue::ESCAPE, InputAction::GUI_CANCEL); + simulateKey(KeyValue::ENTER, InputAction::GUI_SELECT2); keyboardClosed = true; } #endif -- cgit v1.2.3-70-g09d2