mirror of
https://github.com/heyman/heynote.git
synced 2024-11-25 01:13:17 +01:00
Fix cursor movement using Ctrl-left/right with Emacs key bindings in "mark mode"
This commit is contained in:
parent
4c910c6872
commit
c049fc5f2a
@ -67,12 +67,12 @@ export function emacsKeymap(editor) {
|
|||||||
["Ctrl-Shift--", undo],
|
["Ctrl-Shift--", undo],
|
||||||
["Ctrl-.", redo],
|
["Ctrl-.", redo],
|
||||||
["Ctrl-g", emacsCancel],
|
["Ctrl-g", emacsCancel],
|
||||||
{key:"Ctrl-ArrowLeft", run:cursorGroupLeft, shift:selectGroupLeft},
|
|
||||||
{key:"Ctrl-ArrowRight", run:cursorGroupRight, shift:selectGroupRight},
|
|
||||||
["ArrowLeft", emacsMoveCommand(cursorCharLeft, selectCharLeft)],
|
["ArrowLeft", emacsMoveCommand(cursorCharLeft, selectCharLeft)],
|
||||||
["ArrowRight", emacsMoveCommand(cursorCharRight, selectCharRight)],
|
["ArrowRight", emacsMoveCommand(cursorCharRight, selectCharRight)],
|
||||||
["ArrowUp", emacsMoveCommand(cursorLineUp, selectLineUp)],
|
["ArrowUp", emacsMoveCommand(cursorLineUp, selectLineUp)],
|
||||||
["ArrowDown", emacsMoveCommand(cursorLineDown, selectLineDown)],
|
["ArrowDown", emacsMoveCommand(cursorLineDown, selectLineDown)],
|
||||||
|
["Ctrl-ArrowLeft", emacsMoveCommand(cursorGroupLeft, selectGroupLeft)],
|
||||||
|
["Ctrl-ArrowRight", emacsMoveCommand(cursorGroupRight, selectGroupRight)],
|
||||||
|
|
||||||
["Ctrl-d", deleteCharForward],
|
["Ctrl-d", deleteCharForward],
|
||||||
["Ctrl-h", deleteCharBackward],
|
["Ctrl-h", deleteCharBackward],
|
||||||
|
Loading…
Reference in New Issue
Block a user