UNPKG

isometrik-web-tracker

Version:

Production-grade user tracking library with multiple tracking methods

26 lines 784 B
import { KeyboardTrackerOptions } from './types'; export declare class KeyboardTracker { private options; private isDestroyed; private pressedKeys; private keyCombinations; private lastKeyTime; constructor(options: KeyboardTrackerOptions); private initialize; private setupEventListeners; private handleKeyDown; private handleKeyUp; private handleKeyPress; private handleKeyCombination; private getCurrentKeyCombination; getPressedKeys(): string[]; getKeyCombinations(): Map<string, number>; isKeyPressed(keyCode: string): boolean; getLastKeyTime(): number; clearKeyCombinations(): void; pause(): void; resume(): void; destroy(): void; private log; } //# sourceMappingURL=KeyboardTracker.d.ts.map