Skip to content

Commit

Permalink
Add default redo cmd that works on all Platforms. Mod+Shift+Z
Browse files Browse the repository at this point in the history
  • Loading branch information
c3cris authored and heyman committed Jul 8, 2024
1 parent a674616 commit e8971a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/editor/keymap.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit e8971a6

Please sign in to comment.