fix(editor): keep shift-click selection in query editor

This commit is contained in:
zipg authored and GitHub committed 2026-09-04 09:49:54 +08:00
1 parent 06dcd0013c
commit 97f5a37ba8
2 files changed
+18

No files matched your search

@@ -1337,6 +1337,11 @@ function updateEditorSelectionDropCursor(currentView: EditorViewType, event: Mou
}
function startEditorSelectionDrag(currentView: EditorViewType, event: MouseEvent): boolean {
// Shift is CodeMirror's native extend-selection gesture. Keep it out of the
// custom selection drag path so a shift-click inside the current selection
// extends or shrinks the selection instead of collapsing it to the cursor.
if (event.shiftKey) return false;
const selection = selectedRangeAtPointer(currentView, event);
if (!selection) return false;