pass enter back to qwidget so add tags dialog can close on enter

This commit is contained in:
Damien Elmes 2013-05-27 11:37:35 +09:00
parent 9c24c41b90
commit 444f99b7ba

View File

@ -36,6 +36,7 @@ class TagEdit(QLineEdit):
def keyPressEvent(self, evt): def keyPressEvent(self, evt):
if evt.key() in (Qt.Key_Enter, Qt.Key_Return): if evt.key() in (Qt.Key_Enter, Qt.Key_Return):
self.hideCompleter() self.hideCompleter()
QWidget.keyPressEvent(self, evt)
return return
QLineEdit.keyPressEvent(self, evt) QLineEdit.keyPressEvent(self, evt)
if not evt.text(): if not evt.text():