[geary] "Force" search when Enter pressed on search bar: Closes bgno#713068
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] "Force" search when Enter pressed on search bar: Closes bgno#713068
- Date: Mon, 23 Dec 2013 21:54:09 +0000 (UTC)
commit 1267830050439bf83448cbc74c815f7d67e226f6
Author: Wolfgang Steitz <wolfer7 web de>
Date: Mon Dec 23 13:53:34 2013 -0800
"Force" search when Enter pressed on search bar: Closes bgno#713068
src/client/components/main-toolbar.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/client/components/main-toolbar.vala b/src/client/components/main-toolbar.vala
index b8fc3ce..ee350ee 100644
--- a/src/client/components/main-toolbar.vala
+++ b/src/client/components/main-toolbar.vala
@@ -135,6 +135,10 @@ public class MainToolbar : PillToolbar {
if (Gdk.keyval_name(event.keyval) == "Escape")
search_entry.text = "";
+ // Force search if user hits enter.
+ if (Gdk.keyval_name(event.keyval) == "Return")
+ on_search_entry_changed();
+
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]