View as Markdown

API reference: @salmonui/editors/markdown-editor

shortcutCommandfunction

import { shortcutCommand } from '@salmonui/editors/markdown-editor';
function shortcutCommand(event: Pick<KeyboardEvent, 'key' | 'code' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'altKey'>): MarkdownToolbarItemId | null;

The command of a Mod shortcut, or null. Undo / redo stay native.