mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Workaround for some linux systems that appear to have a Qt theme/input method? plugin installed that generated QResizeEvents with type set to KeyPress
This commit is contained in:
parent
2be19e90ce
commit
49a1de252a
@ -211,7 +211,10 @@ class Completer(QListView): # {{{
|
||||
# self.debug_event(e)
|
||||
|
||||
if etype == e.KeyPress:
|
||||
try:
|
||||
key = e.key()
|
||||
except AttributeError:
|
||||
return QObject.eventFilter(self, obj, e)
|
||||
if key == Qt.Key_Escape:
|
||||
self.hide()
|
||||
e.accept()
|
||||
|
Loading…
x
Reference in New Issue
Block a user