Browse Source

Qt CompletionTextEdit: cast KeyboardModifiers to int

closes https://github.com/spesmilo/electrum/issues/7979
patch-4
SomberNight 2 years ago
parent
commit
1478d9d878
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/completion_text_edit.py

2
electrum/gui/qt/completion_text_edit.py

@ -84,7 +84,7 @@ class CompletionTextEdit(ButtonsTextEdit):
if self.isReadOnly(): # if field became read-only *after* keyPress, exit now
return
ctrlOrShift = bool(e.modifiers() & (Qt.ControlModifier | Qt.ShiftModifier))
ctrlOrShift = bool(int(e.modifiers()) & int(Qt.ControlModifier | Qt.ShiftModifier))
if self.completer is None or (ctrlOrShift and not e.text()):
return

Loading…
Cancel
Save