From 6aa3d39e3b4ec76643488823cfa0688649d1ae42 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 18 Oct 2014 11:29:08 +0530 Subject: [PATCH] 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) --- 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 3620db5e64..c5720a6a29 100644 --- a/src/calibre/gui2/complete2.py +++ b/src/calibre/gui2/complete2.py @@ -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())):