property UseMentionAutocompleteResult.handleMentionKeyDown

Handles the arrows, Enter, Tab and Escape while the list is shown, and returns whether it took the key. The caller must then leave the key alone.

Type

(e: MentionKey) => boolean

Usage

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