@stesura/core/keymap
stesuraKeymap(schema) is ProseMirror’s baseKeymap with these bindings added
or overridden (Mod is Cmd on macOS, Ctrl elsewhere):
| Key | Binding |
|---|---|
Enter | Opens a selected equation’s editor; otherwise a newline in code, outdent or un-number an empty list item, or split the block (applying the style’s next style at its end) |
F2 | Opens a selected equation’s editor |
Tab / Shift-Tab | Next / previous table cell (Tab in the last cell appends a row); outside tables, indent / outdent |
Backspace | Selects an equation before deleting it; at the start of a line, outdents an unnumbered block or removes a list item’s numbering |
Delete | Joins into or removes a code block from its end; removes a fully selected table |
ArrowLeft | Moves the caret out of a selected numbering counter |
ArrowUp | Stops the caret at the top of a section’s content instead of entering its hidden header; in later sections, jumps to the end of the previous one |
Mod-b / Mod-i / Mod-u | Toggle bold / italic / underline |
Mod-Shift-c | Toggle code |
Mod-Shift-s | Toggle strikethrough |
Mod-Shift-= / Mod-= | Toggle superscript / subscript |
Mod-z | undo |
Mod-Shift-z / Mod-y | redo |
Mod-a | Select all within the part holding the caret (content, header or footer) |
Escape | Disarms the format painter, otherwise closes search |
Mod-f | Opens search |
Mod-> / Mod-< | incrementFontSize("up") / incrementFontSize("down") |
Mod-Enter | Inserts a paragraph after the table when inside one, otherwise a page break |
Mod-l / Mod-e / Mod-r / Mod-j | setTextAlign "start" / "center" / "end" / "justify" |
Alt-t | insertTable({ rows: 3, cols: 3 }) |
Mod-k | setPendingLink |
Mod-Shift-x | toggleDirection |
Shift-F3 | cycleCase |
Functions & values
stesuraKeymap
Parameters:| Name | Type | Default |
|---|---|---|
schema | Schema<any, any> |
stesuraKeymapPlugin
Parameters:| Name | Type | Default |
|---|---|---|
schema | Schema<any, any> |
Last updated on