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.
(e: MentionKey) => boolean
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.
(e: MentionKey) => boolean
import { type UseMentionAutocompleteResult } from "src/hooks/editor/useMentionAutocomplete.ts";