aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'gui/widgets')
-rw-r--r--gui/widgets/edittext.cpp9
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() {