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(); }