From e45cd49796dada0cb3de17fae543716948331545 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 5 Dec 2011 11:52:18 +0530 Subject: [PATCH] Have the Esc shortcut perform exactly the same set of actions as clicking the clear button. Fixes #900048 ([Enhancement] Request keyboard shortcut for Reset Quick Search) --- src/calibre/gui2/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 63db7a561c..e035777c5e 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -359,7 +359,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{ 'log will be displayed automatically.')%self.gui_debug, show=True) def esc(self, *args): - self.search.clear() + self.clear_button.click() def start_content_server(self, check_started=True): from calibre.library.server.main import start_threaded_server