mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
fix focus problem
This commit is contained in:
parent
b2396a61fa
commit
f6843c0574
@ -809,9 +809,12 @@ void CFocusable::moveFocus()
|
||||
|
||||
void CFocusable::removeFocus()
|
||||
{
|
||||
focus = false;
|
||||
focusListener->focusLost();
|
||||
redraw();
|
||||
if(this == inputWithFocus)
|
||||
{
|
||||
focus = false;
|
||||
focusListener->focusLost();
|
||||
redraw();
|
||||
|
||||
inputWithFocus = nullptr;
|
||||
inputWithFocus = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user