From 263c7c1469fc10d490c6119eb084a693435a8c7f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 8 Jan 2014 09:11:17 +0530 Subject: [PATCH] Fix typing non-English characters using an input method (key composing) in the author/tags/etc fields in the metadata dialog not working. Fixes #1266795 [Character composing doesn't work on metadata editor](https://bugs.launchpad.net/calibre/+bug/1266795) --- src/calibre/gui2/complete2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/complete2.py b/src/calibre/gui2/complete2.py index 25c7ff3fc2..659d965dbd 100644 --- a/src/calibre/gui2/complete2.py +++ b/src/calibre/gui2/complete2.py @@ -228,7 +228,7 @@ class Completer(QListView): # {{{ self.hide() e.accept() return True - elif etype == e.ShortcutOverride: + elif etype in (e.InputMethod, e.ShortcutOverride): QApplication.sendEvent(widget, e) return False # }}}