No focus for completion popup

Might fix issue with some windows computers and the popup
grabbing focus.
This commit is contained in:
Kovid Goyal 2019-11-14 15:07:34 +05:30
parent a5f120085d
commit ac758eb0cd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -102,6 +102,7 @@ class Completer(QListView): # {{{
self.activated.connect(self.item_chosen)
self.pressed.connect(self.item_chosen)
self.installEventFilter(self)
self.setFocusPolicy(Qt.NoFocus)
def hide(self):
self.setCurrentIndex(QModelIndex())