From dc7d1ddef3775651cbe38eef5ca6a24177f1a1e0 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 13 Sep 2024 19:04:05 +0800 Subject: [PATCH] refactor: ctrl+click --- RedPandaIDE/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 1478f72a..bb02cae1 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -1169,7 +1169,7 @@ void Editor::keyReleaseEvent(QKeyEvent *event) void Editor::mouseMoveEvent(QMouseEvent *event) { - if(event->modifiers() == Qt::ControlModifier && !selAvail()) { + if(event->modifiers() == Qt::ControlModifier) { cancelHint(); QSynedit::BufferCoord p; @@ -1485,7 +1485,7 @@ void Editor::mouseReleaseEvent(QMouseEvent *event) { // if ctrl+clicked if ((event->modifiers() == Qt::ControlModifier) - && (event->button() == Qt::LeftButton) && !selAvail()) { + && (event->button() == Qt::LeftButton)) { QSynedit::BufferCoord p; if (mParser && pointToCharLine(event->pos(),p)) { cancelHoverLink();