mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Fix changing the editor undo/redo keyboard shortcuts not preventing the old shortcuts from working.
This commit is contained in:
parent
17e70759ee
commit
d181634728
@ -561,10 +561,11 @@ class TextEdit(PlainTextEdit):
|
||||
return True
|
||||
if ev.type() == ev.ShortcutOverride:
|
||||
if ev in (
|
||||
# Let the global cut/copy/paste 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
|
||||
# instead of the one from Qt
|
||||
QKeySequence.Copy, QKeySequence.Cut, QKeySequence.Paste,
|
||||
# instead of the one from Qt, and allows proper customization
|
||||
# of the shortcuts
|
||||
QKeySequence.Copy, QKeySequence.Cut, QKeySequence.Paste, QKeySequence.Undo, QKeySequence.Redo
|
||||
) or (
|
||||
# This is used to convert typed hex codes into unicode
|
||||
# characters
|
||||
|
Loading…
x
Reference in New Issue
Block a user