# shortcutCommand (@salmonui/editors/markdown-editor)

> The shortcutCommand function of @salmonui/editors/markdown-editor: The command of a Mod shortcut, or null. Undo / redo stay native.

Canonical: https://salmonui.dev/docs/reference/editors/markdown-editor/shortcutCommand

```ts
import { shortcutCommand } from '@salmonui/editors/markdown-editor';
```

Entry index: https://salmonui.dev/docs/reference/editors/markdown-editor (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/editors/markdown-editor.md).

## Reference

Kind: function

```ts
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.
