From 45a6e2c3056895599070cf9f98c78c1c4f577c7c Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Fri, 7 Aug 2015 14:37:04 +0200 Subject: [PATCH] viewSelector: Make backspace focus the search entry Commit fb0cf64536a35d0d018d2f2bd506a9f02af57b14 regressed this because there's no unicode character for backspace. https://bugzilla.gnome.org/show_bug.cgi?id=753319 --- js/ui/viewSelector.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 648f6fa76..660f619a9 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -465,6 +465,9 @@ const ViewSelector = new Lang.Class({ }, _shouldTriggerSearch: function(symbol) { + if (symbol == Clutter.BackSpace && this._searchActive) + return true; + let unicode = Clutter.keysym_to_unicode(symbol); if (unicode == 0) return false; @@ -472,7 +475,7 @@ const ViewSelector = new Lang.Class({ if (getTermsForSearchString(String.fromCharCode(unicode)).length > 0) return true; - return symbol == Clutter.BackSpace && this._searchActive; + return false; }, startSearch: function(event) {