Fix #2035015 [Data file Manager - Enter key inconsistency](https://bugs.launchpad.net/calibre/+bug/2035015)

This commit is contained in:
Kovid Goyal 2023-09-14 10:16:06 +05:30
parent 782eda6351
commit ec7a9cdc47
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -261,7 +261,7 @@ class DataFilesManager(Dialog):
m.exec(self.fview.mapToGlobal(pos)) m.exec(self.fview.mapToGlobal(pos))
def keyPressEvent(self, ev): def keyPressEvent(self, ev):
if ev.key() == Qt.Key.Key_Return: if ev.key() in (Qt.Key.Key_Return, Qt.Key.Key_Enter):
return return
return super().keyPressEvent(ev) return super().keyPressEvent(ev)