This commit is contained in:
eewing
2026-02-17 14:10:16 -06:00
parent 2bca5834c5
commit cf73cd3b4c
11246 changed files with 1690552 additions and 0 deletions
@@ -0,0 +1,20 @@
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;
}