mirror of
https://github.com/edubart/otclient.git
synced 2025-12-15 05:09:46 +01:00
Fix #235 and other changes
This commit is contained in:
@@ -977,7 +977,7 @@ void UIWidget::setFocusable(bool focusable)
|
||||
if(UIWidgetPtr parent = getParent()) {
|
||||
if(!focusable && isFocused()) {
|
||||
parent->focusPreviousChild(Fw::ActiveFocusReason, true);
|
||||
} else if(focusable && (!parent->getFocusedChild() && parent->getAutoFocusPolicy() != Fw::AutoFocusNone)) {
|
||||
} else if(focusable && !parent->getFocusedChild() && parent->getAutoFocusPolicy() != Fw::AutoFocusNone) {
|
||||
focus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user