From 4d98d9c8612beb43c00c49b9c4c4353b45ef0d39 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Fri, 3 Mar 2023 13:29:50 +0100 Subject: [PATCH] Change so that Alt+Click adds new cursor (instead of C+Click) --- src/editor/setup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/setup.js b/src/editor/setup.js index e30c8dd..eec6d98 100644 --- a/src/editor/setup.js +++ b/src/editor/setup.js @@ -55,6 +55,7 @@ const customSetup = /*@__PURE__*/(() => [ drawSelection(), dropCursor(), EditorState.allowMultipleSelections.of(true), + EditorView.clickAddsSelectionRange.of(e => e.altKey), indentOnInput(), syntaxHighlighting(defaultHighlightStyle, { fallback: true }), bracketMatching(),