[gnome-documents] searchbar: only use Enter events when active
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] searchbar: only use Enter events when active
- Date: Wed, 24 Dec 2014 09:30:30 +0000 (UTC)
commit 42a737fbfc85405b7cb21ba98b859200b2017c6b
Author: Cosimo Cecchi <cosimo endlesm com>
Date: Wed Dec 24 17:28:03 2014 +0800
searchbar: only use Enter events when active
We don't want to risk activating random stuff while the searchbar is not
up.
https://bugzilla.gnome.org/show_bug.cgi?id=733191
src/searchbar.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index 8ae159b..24e3f59 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -102,7 +102,7 @@ const Searchbar = new Lang.Class({
return false;
let keyval = event.get_keyval()[1];
- if (keyval == Gdk.KEY_Return) {
+ if (this.widget.search_mode_enabled && keyval == Gdk.KEY_Return) {
this.emit('activate-result');
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]