mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 22:53:20 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -826,7 +826,7 @@ def not_found_label_timer_event(self):
|
|||
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…
Reference in a new issue