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)

This commit is contained in:
Kovid Goyal 2014-01-08 09:11:17 +05:30
parent 632e5105e8
commit 263c7c1469

View File

@ -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
# }}}