Files
eewing ec317eb17c
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m11s
INIT
2026-02-18 15:17:47 -06:00

21 lines
726 B
TypeScript

import { type ConfigurableWindow } from "../../internal/configurable-globals.js";
export type PressedKeysOptions = ConfigurableWindow;
/**
* Tracks which keys are currently pressed.
*
* @see {@link https://runed.dev/docs/utilities/pressed-keys}
*/
export declare class PressedKeys {
#private;
constructor(options?: PressedKeysOptions);
has(...keys: string[]): boolean;
get all(): string[];
/**
* Registers a callback to execute when specified key combination is pressed.
*
* @param keys - Array or single string of keys to monitor
* @param callback - Function to execute when the key combination is matched
*/
onKeys(keys: string | string[], callback: () => void): void;
}