mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
12 lines
380 B
TypeScript
12 lines
380 B
TypeScript
//#region src/ui/hotkey/use-hotkey.d.ts
|
|
interface UseHotkeyOptions {
|
|
keys: string;
|
|
onActivate: (event: KeyboardEvent, key: string) => void;
|
|
target?: 'player' | 'document';
|
|
repeatable?: boolean;
|
|
disabled?: boolean;
|
|
}
|
|
declare function useHotkey(options: UseHotkeyOptions): void;
|
|
//#endregion
|
|
export { UseHotkeyOptions, useHotkey };
|
|
//# sourceMappingURL=use-hotkey.d.ts.map
|