Skip to content

Commit

Permalink
Fix cursor movement using Ctrl-left/right with Emacs key bindings in …
Browse files Browse the repository at this point in the history
…"mark mode"
  • Loading branch information
heyman committed Dec 5, 2023
1 parent 4c910c6 commit c049fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/editor/emacs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit c049fc5

Please sign in to comment.