mirror of
https://github.com/heyman/heynote.git
synced 2024-11-24 17:03:19 +01:00
Add default redo cmd that works on all Platforms. Mod+Shift+Z
This commit is contained in:
parent
a6746167d6
commit
e8971a6733
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user