mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-05 22:24:12 +01:00
No focus for completion popup
Might fix issue with some windows computers and the popup grabbing focus.
This commit is contained in:
parent
a5f120085d
commit
ac758eb0cd
1 changed files with 1 additions and 0 deletions
|
|
@ -102,6 +102,7 @@ def __init__(self, completer_widget, max_visible_items=7, sort_func=sort_key, st
|
|||
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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue