From a6f856d2d96f8e95320ee3115a11f7627d1ee8c2 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 2 Jan 2018 16:35:51 +0000 Subject: [PATCH] Fix mistaken && insteasd of & checking control key modifier --- qrenderdoc/Windows/PythonShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/PythonShell.cpp b/qrenderdoc/Windows/PythonShell.cpp index c6f507832..760214e07 100644 --- a/qrenderdoc/Windows/PythonShell.cpp +++ b/qrenderdoc/Windows/PythonShell.cpp @@ -495,7 +495,7 @@ PythonShell::PythonShell(ICaptureContext &ctx, QWidget *parent) }); QObject::connect(scriptEditor, &ScintillaEdit::keyPressed, [this](QKeyEvent *ev) { - if(ev->key() == Qt::Key_Space && ev->modifiers() && Qt::ControlModifier) + if(ev->key() == Qt::Key_Space && (ev->modifiers() & Qt::ControlModifier)) { startAutocomplete(); }