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
| Parameter | Type | Description |
|---|---|---|
keys | string[] | Array of keys (e.g., ['Meta', 'K']) |
action | () => void | Action to execute on key press |
Returns
Function to unregister the shortcut
():
void
Returns
void