mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +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 { keymap } from "@codemirror/view"
|
||||||
//import { EditorSelection, EditorState } from "@codemirror/state"
|
//import { EditorSelection, EditorState } from "@codemirror/state"
|
||||||
import {
|
import {
|
||||||
indentLess, indentMore,
|
indentLess, indentMore, redo,
|
||||||
} from "@codemirror/commands"
|
} from "@codemirror/commands"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -61,6 +61,7 @@ export function heynoteKeymap(editor) {
|
|||||||
["Mod-Alt-ArrowDown", newCursorBelow],
|
["Mod-Alt-ArrowDown", newCursorBelow],
|
||||||
["Mod-Alt-ArrowUp", newCursorAbove],
|
["Mod-Alt-ArrowUp", newCursorAbove],
|
||||||
["Mod-Shift-k", deleteLine],
|
["Mod-Shift-k", deleteLine],
|
||||||
|
["Mod-Shift-z", redo],
|
||||||
{key:"Mod-ArrowUp", run:gotoPreviousBlock, shift:selectPreviousBlock},
|
{key:"Mod-ArrowUp", run:gotoPreviousBlock, shift:selectPreviousBlock},
|
||||||
{key:"Mod-ArrowDown", run:gotoNextBlock, shift:selectNextBlock},
|
{key:"Mod-ArrowDown", run:gotoNextBlock, shift:selectNextBlock},
|
||||||
{key:"Ctrl-ArrowUp", run:gotoPreviousParagraph, shift:selectPreviousParagraph},
|
{key:"Ctrl-ArrowUp", run:gotoPreviousParagraph, shift:selectPreviousParagraph},
|
||||||
|
Loading…
Reference in New Issue
Block a user