Browse Source

Force-show on-screen keyboard when clicking on active status bar

Ivan Savenko 1 year ago
parent
commit
bbdd2ffb37
1 changed files with 6 additions and 0 deletions
  1. 6 0
      client/adventureMap/CInGameConsole.cpp

+ 6 - 0
client/adventureMap/CInGameConsole.cpp

@@ -266,7 +266,13 @@ void CInGameConsole::startEnteringText()
 		return;
 
 	if(isEnteringText())
+	{
+		// force-reset text input to re-show on-screen keyboard
+		GH.statusbar()->setEnteringMode(false);
+		GH.statusbar()->setEnteringMode(true);
+		GH.statusbar()->setEnteredText(enteredText);
 		return;
+	}
 		
 	assert(currentStatusBar.expired());//effectively, nullptr check