Skip to content

Scope

Defined in: command.svelte.ts:873

new Scope(parent?): Scope

Defined in: command.svelte.ts:878

Scope

Scope

get keys(): MapIterator<string>

Defined in: command.svelte.ts:887

MapIterator<string>

handleEvent(event): boolean

Defined in: command.svelte.ts:940

KeyboardEvent

boolean


register(modifiers, key, func): KeymapEventHandler

Defined in: command.svelte.ts:903

Add a keymap event handler to this scope.

Modifier[] | null

Mod, Ctrl, Meta, Shift, or Alt. Mod translates to Meta on macOS and Ctrl otherwise. Pass null to capture all events matching the key, regardless of modifiers.

string | null

Keycode from https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key%5FValues

KeymapEventListener

The callback that will be called when a user triggers the keybind.

KeymapEventHandler


unregister(handler): void

Defined in: command.svelte.ts:926

Remove an existing keymap event handler.

KeymapEventHandler

void