Fix regression in previous release that prevented arrow keys/tab key from working in completion popups on OSX. Fixes #1382633 [Unable to use arrow buttons](https://bugs.launchpad.net/calibre/+bug/1382633)

This commit is contained in:
Kovid Goyal 2014-10-18 11:29:08 +05:30
parent 96dfd3d550
commit 6aa3d39e3b

View File

@ -248,7 +248,7 @@ class Completer(QListView): # {{{
# In Qt 5 the Esc key cause this event and the line edit does not
# handle it, which causes the parent dialog to be closed
# See https://bugreports.qt-project.org/browse/QTBUG-41806
self.hide(), e.accept()
e.accept()
return True
elif etype == e.MouseButtonPress:
if not self.rect().contains(self.mapFromGlobal(e.globalPos())):