focus locking stack
This commit is contained in:
parent
1bbce78a2e
commit
b5e490a0f8
7 changed files with 34 additions and 15 deletions
|
|
@ -150,9 +150,11 @@ void RootWidget::openPopup(Widget* widget) {
|
|||
}
|
||||
|
||||
void RootWidget::closePopup(Widget* widget) {
|
||||
mPopups.removeChild(widget);
|
||||
mUpdateManager.freeFocus(widget);
|
||||
if (mUpdateManager.canRemoveWidget(widget)) {
|
||||
mPopups.removeChild(widget);
|
||||
mUpdateManager.removeWidget(widget);
|
||||
}
|
||||
}
|
||||
|
||||
void RootWidget::lockFocus(Widget* widget) { mUpdateManager.lockFocus(widget); }
|
||||
void RootWidget::freeFocus(Widget* widget) { mUpdateManager.freeFocus(widget); }
|
||||
void RootWidget::freeFocus(Widget* widget) { mUpdateManager.freeFocus(widget); }
|
||||
Loading…
Add table
Add a link
Reference in a new issue