[gnome-shell] viewSelector: Make backspace focus the search entry
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] viewSelector: Make backspace focus the search entry
- Date: Fri, 7 Aug 2015 13:37:58 +0000 (UTC)
commit 45a6e2c3056895599070cf9f98c78c1c4f577c7c
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Aug 7 14:37:04 2015 +0200
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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 648f6fa..660f619 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]