Update comment to be accurate about the current state of calibre

See 781a5e3287 (commitcomment-33165094)
This commit is contained in:
Eli Schwartz 2019-04-14 10:58:43 -04:00
parent 333dab88c2
commit 9853451a74
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -696,8 +696,8 @@ class TextEdit(PlainTextEdit):
def override_shortcut(self, ev): def override_shortcut(self, ev):
# Let the global cut/copy/paste/undo/redo shortcuts work, this avoids the nbsp # Let the global cut/copy/paste/undo/redo shortcuts work, this avoids the nbsp
# problem as well, since they use the overridden copy() method # problem as well, since they use the overridden createMimeDataFromSelection() method
# instead of the one from Qt, and allows proper customization # instead of the one from Qt (which makes copy() work), and allows proper customization
# of the shortcuts # of the shortcuts
if ev in (QKeySequence.Copy, QKeySequence.Cut, QKeySequence.Paste, QKeySequence.Undo, QKeySequence.Redo): if ev in (QKeySequence.Copy, QKeySequence.Cut, QKeySequence.Paste, QKeySequence.Undo, QKeySequence.Redo):
ev.ignore() ev.ignore()