diff options
author | Thierry Crozat | 2019-02-12 23:42:50 +0000 |
---|---|---|
committer | Thierry Crozat | 2019-02-16 17:20:57 +0000 |
commit | 63a6a3c3debce1bc843906bf8fa277a1fb75b2d4 (patch) | |
tree | fa22d8c21d2a7ee756ca84e8d802413496c32ee3 /gui/widgets | |
parent | 284a4e291280d5a461c83ba7cb48aa53853744fd (diff) | |
download | scummvm-rg350-63a6a3c3debce1bc843906bf8fa277a1fb75b2d4.tar.gz scummvm-rg350-63a6a3c3debce1bc843906bf8fa277a1fb75b2d4.tar.bz2 scummvm-rg350-63a6a3c3debce1bc843906bf8fa277a1fb75b2d4.zip |
GUI: show/hide virtual keyboard when the EditTextWidget gains/loses the focus
Diffstat (limited to 'gui/widgets')
-rw-r--r-- | gui/widgets/edittext.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gui/widgets/edittext.cpp b/gui/widgets/edittext.cpp index 8dabb0df61..ba9ef616ba 100644 --- a/gui/widgets/edittext.cpp +++ b/gui/widgets/edittext.cpp @@ -87,12 +87,6 @@ void EditTextWidget::handleMouseDown(int x, int y, int button, int clickCount) { } if (setCaretPos(i)) markAsDirty(); - -#ifdef TIZEN - // Display the virtual keypad to allow text entry. Samsung app-store testers expected - // the keypad to be displayed when clicking the filter edit control in the laucher gui. - g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true); -#endif } void EditTextWidget::drawWidget() { @@ -118,12 +112,15 @@ Common::Rect EditTextWidget::getEditRect() const { } void EditTextWidget::receivedFocusWidget() { + g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true); } void EditTextWidget::lostFocusWidget() { // If we loose focus, 'commit' the user changes _backupString = _editString; drawCaret(true); + + g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false); } void EditTextWidget::startEditMode() { |