diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2018-02-10 00:18:26 +0100 |
---|---|---|
committer | Florian Müllner <florian.muellner@gmail.com> | 2018-02-10 00:03:11 +0000 |
commit | bc4462cd0c1abb99652b0ccd491735c292abe1eb (patch) | |
tree | f18ddcc47ad533bdbc2379ec381491cf137e1b3b | |
parent | 1ce5ed86853a19bf7cce6c27eabbbed0eaab9dc0 (diff) | |
download | gnome-shell-bc4462cd0c1abb99652b0ccd491735c292abe1eb.tar.gz |
viewSelector: Avoid stealing focus from other entries into overview entry
The captured-event handler just redirects focus there on the first keypress,
what it doesn't account for is that other entries may be active while the
Activities overview is opened (eg. alt-f2, or other modal dialogs). Play
along with other entries, and make it only steal focus if no other entry
is selected.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/33
Closes: #33
-rw-r--r-- | js/ui/viewSelector.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index d9a13a3aa..aba703bc4 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -606,7 +606,7 @@ var ViewSelector = new Lang.Class({ // - cancel the search this.reset(); } - } else if (!this._text.has_key_focus() && + } else if (!(global.stage.get_key_focus() instanceof Clutter.Text) && (event.type() == Clutter.EventType.KEY_PRESS || event.type() == Clutter.EventType.KEY_RELEASE)) { let unichar = event.get_key_unicode(); |