pass enter back to qwidget so add tags dialog can close on enter
This commit is contained in:
parent
9c24c41b90
commit
444f99b7ba
@ -36,6 +36,7 @@ class TagEdit(QLineEdit):
|
||||
def keyPressEvent(self, evt):
|
||||
if evt.key() in (Qt.Key_Enter, Qt.Key_Return):
|
||||
self.hideCompleter()
|
||||
QWidget.keyPressEvent(self, evt)
|
||||
return
|
||||
QLineEdit.keyPressEvent(self, evt)
|
||||
if not evt.text():
|
||||
|
Loading…
Reference in New Issue
Block a user