1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Disable text input on window deactivation

This commit is contained in:
Ivan Savenko
2022-12-19 22:06:01 +02:00
parent d29c9d6445
commit a75b437fef
4 changed files with 15 additions and 3 deletions

View File

@ -432,6 +432,14 @@ void CGStatusBar::clickLeft(tribool down, bool previousState)
}
}
void CGStatusBar::deactivate()
{
if (enteringText)
setEnteringMode(false);
CIntObject::deactivate();
}
void CGStatusBar::setOnClick(std::function<void()> handler)
{
onClick = handler;