ngx-hotkey
Version:
An easy way to use Hotkeys in Angular.
12 lines (11 loc) • 346 B
TypeScript
export declare class NgxHotkeyService {
private hotkeys;
private lastHotkeyFired;
constructor();
add(shortcut: string, callback: (event: KeyboardEvent) => boolean): void;
remove(shortcut: string): void;
private checkKeyDown;
private onKeyUp;
private checkHotKey;
private isTheSameLastHotkeyFired;
}