mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
I forgot the Key enum ...
This commit is contained in:
parent
9db4584517
commit
b341100d12
@ -71,7 +71,7 @@ class PlainTextEdit(QPlainTextEdit):
|
||||
|
||||
def keyPressEvent (self, event):
|
||||
v = int(QApplication.keyboardModifiers() & Qt.KeyboardModifier.ControlModifier)
|
||||
if v and event.key() == Qt.Key_Return:
|
||||
if v and event.key() == Qt.Key.Key_Return:
|
||||
event.accept()
|
||||
self.ctrl_enter_pushed.emit()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user