From c049fc5f2a34990e5508e2bbe0b16442d71cab83 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Tue, 5 Dec 2023 17:45:51 +0100 Subject: [PATCH] Fix cursor movement using Ctrl-left/right with Emacs key bindings in "mark mode" --- src/editor/emacs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/emacs.js b/src/editor/emacs.js index 5c0e245c..b8a44136 100644 --- a/src/editor/emacs.js +++ b/src/editor/emacs.js @@ -67,12 +67,12 @@ export function emacsKeymap(editor) { ["Ctrl-Shift--", undo], ["Ctrl-.", redo], ["Ctrl-g", emacsCancel], - {key:"Ctrl-ArrowLeft", run:cursorGroupLeft, shift:selectGroupLeft}, - {key:"Ctrl-ArrowRight", run:cursorGroupRight, shift:selectGroupRight}, ["ArrowLeft", emacsMoveCommand(cursorCharLeft, selectCharLeft)], ["ArrowRight", emacsMoveCommand(cursorCharRight, selectCharRight)], ["ArrowUp", emacsMoveCommand(cursorLineUp, selectLineUp)], ["ArrowDown", emacsMoveCommand(cursorLineDown, selectLineDown)], + ["Ctrl-ArrowLeft", emacsMoveCommand(cursorGroupLeft, selectGroupLeft)], + ["Ctrl-ArrowRight", emacsMoveCommand(cursorGroupRight, selectGroupRight)], ["Ctrl-d", deleteCharForward], ["Ctrl-h", deleteCharBackward],