fix focus problem

This commit is contained in:
Laserlicht authored and GitHub committed 2023-10-16 01:39:53 +02:00
1 parent b2396a61fa
commit f6843c0574
1 file changed
+7 -4
+7 -4
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;
}
}