mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Fix regression that caused pressing Alt+X to type unicode characters to not work
This commit is contained in:
parent
24d43645ab
commit
1001b61f25
@ -544,8 +544,8 @@ class TextEdit(PlainTextEdit):
|
|||||||
# characters
|
# characters
|
||||||
ev.key() == Qt.Key_X and ev.modifiers() == Qt.AltModifier
|
ev.key() == Qt.Key_X and ev.modifiers() == Qt.AltModifier
|
||||||
):
|
):
|
||||||
ev.ignore()
|
ev.accept()
|
||||||
return False
|
return True
|
||||||
return QPlainTextEdit.event(self, ev)
|
return QPlainTextEdit.event(self, ev)
|
||||||
|
|
||||||
def text_for_range(self, block, r):
|
def text_for_range(self, block, r):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user