mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1922300 [Tag browser: Blank search doesn't clear filters](https://bugs.launchpad.net/calibre/+bug/1922300)
This commit is contained in:
commit
653c8c17de
@ -826,7 +826,7 @@ class TagBrowserWidget(QFrame): # {{{
|
||||
self.not_found_label.setVisible(False)
|
||||
|
||||
def keyPressEvent(self, ev):
|
||||
if ev.key() in (Qt.Key.Key_Enter, Qt.Key.Key_Return) and self.find_text:
|
||||
if ev.key() in (Qt.Key.Key_Enter, Qt.Key.Key_Return) and self.item_search.hasFocus():
|
||||
self.find()
|
||||
ev.accept()
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user