mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
96dfd3d550
commit
6aa3d39e3b
@ -248,7 +248,7 @@ class Completer(QListView): # {{{
|
|||||||
# In Qt 5 the Esc key cause this event and the line edit does not
|
# 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
|
# handle it, which causes the parent dialog to be closed
|
||||||
# See https://bugreports.qt-project.org/browse/QTBUG-41806
|
# See https://bugreports.qt-project.org/browse/QTBUG-41806
|
||||||
self.hide(), e.accept()
|
e.accept()
|
||||||
return True
|
return True
|
||||||
elif etype == e.MouseButtonPress:
|
elif etype == e.MouseButtonPress:
|
||||||
if not self.rect().contains(self.mapFromGlobal(e.globalPos())):
|
if not self.rect().contains(self.mapFromGlobal(e.globalPos())):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user