summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorcpasjuste <cpasjuste@gmail.com>2020-04-29 11:49:01 +0200
committercpasjuste <cpasjuste@gmail.com>2020-04-29 11:49:01 +0200
commit9336a924065553d94732941900375385284c47ee (patch)
treea766f3851e210bd155ab1eb23aee7b383d57c217 /src/gui
parent63fd641252dd035e51730fa2172f6faea0d5f756 (diff)
downloadplus-9336a924065553d94732941900375385284c47ee.tar.gz
plus-9336a924065553d94732941900375385284c47ee.tar.bz2
plus-9336a924065553d94732941900375385284c47ee.tar.xz
plus-9336a924065553d94732941900375385284c47ee.zip
switch: fix software keyboard validation event, fix paths
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/sdlinput.cpp4
1 files changed, 2 insertions, 2 deletions
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