mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
(Android) Fixed an issue where pressing the backspace key twice while editing text using a physical keyboard would close the text input dialog
This commit is contained in:
parent
9d1522bec5
commit
d806e9376d
|
@ -10,6 +10,10 @@
|
|||
|
||||
#include "utils/StringUtil.h"
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
#include "Settings.h"
|
||||
#endif
|
||||
|
||||
#define TEXT_PADDING_HORIZ 12.0f
|
||||
#define TEXT_PADDING_VERT 2.0f
|
||||
|
||||
|
@ -205,13 +209,21 @@ bool TextEditComponent::input(InputConfig* config, Input input)
|
|||
}
|
||||
return true;
|
||||
}
|
||||
#if !defined(__ANDROID__)
|
||||
#if defined(__ANDROID__)
|
||||
else if (!Settings::getInstance()->getBool("VirtualKeyboard") &&
|
||||
input.id == SDLK_BACKSPACE) {
|
||||
return false;
|
||||
}
|
||||
else if (Settings::getInstance()->getBool("VirtualKeyboard") &&
|
||||
input.id == SDLK_BACKSPACE) {
|
||||
mMaskInput = false;
|
||||
#else
|
||||
else if (input.id == SDLK_BACKSPACE) {
|
||||
mMaskInput = false;
|
||||
textInput("\b");
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (cursorLeft || cursorRight) {
|
||||
|
|
Loading…
Reference in a new issue