1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

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

This commit is contained in:
Ivan Savenko 2024-05-15 10:13:40 +00:00
parent fe4b4a4fba
commit bbdd2ffb37

View File

@ -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