fix focus problem
This commit is contained in:
1 parent
b2396a61fa
commit
f6843c0574
1 file changed
+7
-4
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user