View as Markdown

API reference: @salmonui/rich-text

RichTextKeyBindingstype

import type { RichTextKeyBindings } from '@salmonui/rich-text';
type RichTextKeyBindings = Readonly<Record<string, string | false | (() => boolean)>>;

keyBindings prop: key -> command or action id, a function, or false to remove a default.