viewSelector: Don't unfocus other modals on reset
Don't drop the key focus on Clutter's side if anything but the overview has
pushed a modal (e.g. system modals when activated using the overview).
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/618
(cherry picked from commit fffe58f829
)
This commit is contained in:
parent
1e929357e0
commit
219118e633
@ -460,6 +460,10 @@ var ViewSelector = new Lang.Class({
|
||||
},
|
||||
|
||||
reset() {
|
||||
// Don't drop the key focus on Clutter's side if anything but the
|
||||
// overview has pushed a modal (e.g. system modals when activated using
|
||||
// the overview).
|
||||
if (Main.modalCount <= 1)
|
||||
global.stage.set_key_focus(null);
|
||||
|
||||
this._entry.text = '';
|
||||
|
Loading…
Reference in New Issue
Block a user