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
This commit is contained in:
parent
a35382d6fc
commit
fffe58f829
@ -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