fix(editor): keep shift-click selection in query editor
This commit is contained in:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user