This commit is contained in:
Kovid Goyal 2019-04-14 20:51:27 +05:30
commit 10a2cd77d0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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