Skip to Content
💡 Legacy Notice: You're viewing Svelte Flow for Svelte 4. For the latest documentation, click here.
ReferenceTypesKeyDefinition

KeyDefinition

A key definition is a string or an object that describes a key and a modifier. It is used for defining built-in keybindings like selectionKey or deleteKey.

export type KeyDefinitionObject = { key: string; modifier?: KeyModifier }; export type KeyDefinition = string | KeyDefinitionObject;
Last updated on