@jeanmajid/windows-keylistener
Version:
Low‑level keyboard hook for Windows
19 lines (16 loc) • 526 B
TypeScript
declare module "@jeanmajid/windows-keylistener" {
/**
* Starts the key listener.
* @param callback - A function that will be called with the key code of each key press.
*/
export function start(callback: (keyCode: number) => void): void;
/**
* Stops the key listener.
*/
export function stop(): void;
/**
* Copy a text to the clipboard
* @param text The text to copy to the clipboard
*/
export function copyToClipboard(text: string): void;
}