GNOME Bugzilla – Bug 767146
Improve how the escape key is used in the search bar
Last modified: 2016-06-02 12:06:26 UTC
The search key currently only clears the text in the search bar. These changes do that when there is text but when the search bar is empty, pressing the Escape key will hide it. This is a common pattern and improves the UX IMO.
Created attachment 328932 [details] [review] Improve how the escape key is used in the search bar The escape key was simply clearing the search bar's text. With these changes, it does that when there is text, otherwise it hides the search bar. This provides a counter action to showing the search bar by typing which improves the UX.
commit d479fe2e9e2bcd2e13813642f4d39010b9722b81 Author: Richard Hughes <richard@hughsie.com> Date: Thu Jun 2 13:01:00 2016 +0100 Switch to using GtkSearchBar Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=767143 https://bugzilla.gnome.org/show_bug.cgi?id=767144 https://bugzilla.gnome.org/show_bug.cgi?id=767146 https://bugzilla.gnome.org/show_bug.cgi?id=767148