mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1922300: Tag browser: Blank search doesn't clear filters
This commit is contained in:
parent
b4b2108546
commit
5e62715fa8
@ -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