Skip to main content

Module keys

Module keys 

Source
Expand description

The keymap: every action the editor answers to, and the chords bound to it.

Separate from the surface because it is configuration rather than behaviour — an app that wants a different keymap replaces this call, not the editor.

Structs§

Backspace
CancelUrl
ConfirmUrl
Copy
Cut
DecreaseTextSize
Delete
DeleteToHome
DeleteWordLeft
DeleteWordRight
Dismiss
Down
DuplicateBlock
End
Home
IncreaseTextSize
Indent
KillLine
Left
MoveBlockDown
MoveBlockUp
Outdent
Paste
Redo
RemoveBlock
ResetTextSize
Right
SelectAll
SelectDown
SelectEnd
SelectHome
SelectLeft
SelectRight
SelectUp
SelectWordLeft
SelectWordRight
SplitBlock
ToggleBold
ToggleCode
ToggleItalic
ToggleStrike
Undo
Up
WordLeft
WordRight

Functions§

bindings
The editor’s default keymap, as data, so an app can have it without having to take it. Scoped to the editor’s own key context, so binding tab here does not make tab mean “indent” for the whole app.
init
Install the editor’s key bindings — bindings, bound.