Skip to content

Universal DevTools Kit SDK


Universal DevTools Kit SDK / @u-devtools/core / ShortcutApi

Interface: ShortcutApi ​

Defined in: index.ts:169

Methods ​

register() ​

register(keys, action): () => void

Defined in: index.ts:176

Register a keyboard shortcut.

Parameters ​

ParameterTypeDescription
keysstring[]Array of keys (e.g., ['Meta', 'K'])
action() => voidAction to execute on key press

Returns ​

Function to unregister the shortcut

(): void

Returns ​

void

Released under the MIT License.