COMPOSITION_IGNORE_KEYS

const
Input

List of keyboard keys that autocomplete and combobox inputs ignore during IME composition sessions. Prevents arrow-key navigation, Enter, Escape, Tab and the empty key from triggering selection while the user is composing a CJK or other multi-keystroke character.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

KEYBOARD_VALUES.UP
Arrow Up — ignored during composition.
KEYBOARD_VALUES.DOWN
Arrow Down — ignored during composition.
KEYBOARD_VALUES.RIGHT
Arrow Right — ignored during composition.
KEYBOARD_VALUES.LEFT
Arrow Left — ignored during composition.
KEYBOARD_VALUES.ENTER
Enter — ignored during composition.
KEYBOARD_VALUES.ESC
Escape — ignored during composition.
KEYBOARD_VALUES.TAB
Tab — ignored during composition.
KEYBOARD_VALUES.EMPTY
Empty string key — ignored during composition.

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamAutocomplete

  • OrigamCombobox

Usage

Examples

Ready-to-paste code snippets using this constant.

Guarding keydown events during IME composition

typescript