Scope
API reference uses a reviewed source snapshot. Source links open the published source; unverified line locations are omitted.
Defined in: command.svelte.ts:916
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Scope(
parent?,application?):Scope
Defined in: command.svelte.ts:922
Parameters
Section titled “Parameters”parent?
Section titled “parent?”Scope
application?
Section titled “application?”Returns
Section titled “Returns”Scope
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get keys():
MapIterator<string>
Defined in: command.svelte.ts:932
Returns
Section titled “Returns”MapIterator<string>
Methods
Section titled “Methods”handleEvent()
Section titled “handleEvent()”handleEvent(
event):boolean
Defined in: command.svelte.ts:985
Parameters
Section titled “Parameters”KeyboardEvent
Returns
Section titled “Returns”boolean
register()
Section titled “register()”register(
modifiers,key,func):KeymapEventHandler
Defined in: command.svelte.ts:948
Add a keymap event handler to this scope.
Parameters
Section titled “Parameters”modifiers
Section titled “modifiers”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.
Returns
Section titled “Returns”unregister()
Section titled “unregister()”unregister(
handler):void
Defined in: command.svelte.ts:971
Remove an existing keymap event handler.
Parameters
Section titled “Parameters”handler
Section titled “handler”Returns
Section titled “Returns”void