Browse Source

qt.completion_text_edit: fix logic bug re shift/ctrl

patch-4
SomberNight 3 years ago
parent
commit
4a791f9285
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

@ -82,7 +82,7 @@ class CompletionTextEdit(ButtonsTextEdit):
QPlainTextEdit.keyPressEvent(self, e)
ctrlOrShift = e.modifiers() and (Qt.ControlModifier or Qt.ShiftModifier)
ctrlOrShift = bool(e.modifiers() & (Qt.ControlModifier | Qt.ShiftModifier))
if self.completer is None or (ctrlOrShift and not e.text()):
return

Loading…
Cancel
Save