Edit Book: Fix regression that caused pressing Alt+X to type unicode characters to not work

This commit is contained in:
Kovid Goyal 2015-04-07 09:09:25 +05:30
parent 24d43645ab
commit 1001b61f25

View File

@ -544,8 +544,8 @@ class TextEdit(PlainTextEdit):
# characters
ev.key() == Qt.Key_X and ev.modifiers() == Qt.AltModifier
):
ev.ignore()
return False
ev.accept()
return True
return QPlainTextEdit.event(self, ev)
def text_for_range(self, block, r):