pushModal: clear focus after pushing a new level

This way the new modal level is independent of whatever may have been
happening before. Fixes a problem with status menus becoming active
again from inside the app switcher, etc.
This commit is contained in:
Dan Winship 2010-10-29 14:54:53 -04:00
parent a19e8d58f5
commit f21403fd9f

View File

@ -390,6 +390,7 @@ function pushModal(actor) {
} }
modalActorFocusStack.push([actor, curFocus]); modalActorFocusStack.push([actor, curFocus]);
global.stage.set_key_focus(null);
return true; return true;
} }