Bug #1922300: Tag browser: Blank search doesn't clear filters

This commit is contained in:
Charles Haley 2021-04-03 16:17:59 +01:00
parent b4b2108546
commit 5e62715fa8

View File

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