qt.completion_text_edit: fix logic bug re shift/ctrl
This commit is contained in:
@@ -82,7 +82,7 @@ class CompletionTextEdit(ButtonsTextEdit):
|
|||||||
|
|
||||||
QPlainTextEdit.keyPressEvent(self, e)
|
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()):
|
if self.completer is None or (ctrlOrShift and not e.text()):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user