type alias MentionKey

Passed to UseMentionAutocompleteResult.handleMentionKeyDown by TextEditor. It is the part of a React keydown event that the list reads.

Definition

Pick<
KeyboardEvent,
"key"
| "ctrlKey"
| "metaKey"
| "shiftKey"
| "altKey"
| "preventDefault"
| "stopPropagation"
>

Usage

import { type MentionKey } from "src/hooks/editor/useMentionAutocomplete.ts";