From e8971a6733678238b2ba29a407bd033e64c03248 Mon Sep 17 00:00:00 2001 From: Cris Date: Mon, 8 Jul 2024 13:00:31 -0700 Subject: [PATCH] Add default redo cmd that works on all Platforms. Mod+Shift+Z --- src/editor/keymap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/keymap.js b/src/editor/keymap.js index 745aaf3..fff0dbc 100644 --- a/src/editor/keymap.js +++ b/src/editor/keymap.js @@ -1,7 +1,7 @@ import { keymap } from "@codemirror/view" //import { EditorSelection, EditorState } from "@codemirror/state" import { - indentLess, indentMore, + indentLess, indentMore, redo, } from "@codemirror/commands" import { @@ -61,6 +61,7 @@ export function heynoteKeymap(editor) { ["Mod-Alt-ArrowDown", newCursorBelow], ["Mod-Alt-ArrowUp", newCursorAbove], ["Mod-Shift-k", deleteLine], + ["Mod-Shift-z", redo], {key:"Mod-ArrowUp", run:gotoPreviousBlock, shift:selectPreviousBlock}, {key:"Mod-ArrowDown", run:gotoNextBlock, shift:selectNextBlock}, {key:"Ctrl-ArrowUp", run:gotoPreviousParagraph, shift:selectPreviousParagraph},