GNOME Bugzilla – Bug 696905
press Escape to cancel search
Last modified: 2018-01-17 14:30:16 UTC
In Devhelp it would be nice if I could press Escape to clear the search box and cancel the current search, just as if I had pressed the X button at the right side of the search box.
We do want to stick to what other GTK+ apps do with the new GtkSearchEntry. If you believe that this is a good thing to have, please open a bug against gtk+, as maybe it can be handled directly there in a more generic way.
Done: see bug 696961 .
Adam, is this still ok with the port I made to GtkSearchbar?
Nacho, I don't understand your question. In Devhelp from git master I still can't press Escape to cancel a search, and I'd still like to be able to.
Hey Adam, maybe we are talking about a different search? I mean about the one on webkit view, i.e pressing control+f and searching something.
Ah. In this bug I'm talking about the main search box at the top of the sidebar.
We can connect to the GtkSearchEntry::stop-search signal to empty the entry. "The default bindings for this signal is Escape."
Done: commit 6ae70073a2e491c33c1d7ea712104fe2f7cf769c