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:
@ -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;
|
||||
|
Reference in New Issue
Block a user