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)

This commit is contained in:
Kovid Goyal 2011-12-05 11:52:18 +05:30
parent a78aa3e12a
commit e45cd49796

View File

@ -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