From 1001b61f25802377072b05bab1979acb96ac4b89 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Apr 2015 09:09:25 +0530 Subject: [PATCH] Edit Book: Fix regression that caused pressing Alt+X to type unicode characters to not work --- src/calibre/gui2/tweak_book/editor/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tweak_book/editor/text.py b/src/calibre/gui2/tweak_book/editor/text.py index e9c90fc236..7f1129e5bc 100644 --- a/src/calibre/gui2/tweak_book/editor/text.py +++ b/src/calibre/gui2/tweak_book/editor/text.py @@ -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):