aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/surface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/surface.cpp')
-rw-r--r--engines/lure/surface.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp
index 26d3f65471..4b291de58b 100644
--- a/engines/lure/surface.cpp
+++ b/engines/lure/surface.cpp
@@ -424,6 +424,9 @@ bool Surface::getString(Common::String &line, int maxSize, bool isNumeric, bool
bool vKbdFlag = g_system->hasFeature(OSystem::kFeatureVirtualKeyboard);
if (!vKbdFlag)
mouse.cursorOff();
+ else
+ g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);
+
// Insert a cursor character at the end of the string
newLine.insertChar('_', newLine.size());
@@ -489,6 +492,8 @@ bool Surface::getString(Common::String &line, int maxSize, bool isNumeric, bool
if (!vKbdFlag)
mouse.cursorOn();
+ else
+ g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
return false;
}