1
0
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:
Laserlicht 2023-10-16 01:39:53 +02:00 committed by GitHub
parent b2396a61fa
commit f6843c0574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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