@waradu/keyboard
Version:
A keyboard manager compatible with JavaScript, TypeScript and Nuxt
10 lines (9 loc) • 481 B
TypeScript
import type { Handlers, Keybind, Keyboard } from "@waradu/keyboard";
import type { Ref } from "vue";
export declare const useKeybind: Keyboard["bind"];
export declare function useKeybindLayer(...args: Parameters<Keyboard["layers"]["create"]>): ReturnType<Keyboard["layers"]["create"]>;
export declare function useKeyboardInspector(): {
handlers: Ref<Handlers>;
unsubscribe: () => unknown;
};
export declare function useKeybindRecorder(cb: (keybind: Keybind) => void): any;