UNPKG

ngx-hotkey

Version:

An easy way to use Hotkeys in Angular.

12 lines (11 loc) 320 B
export default class Hotkey { shortcut: string; callback: (event: KeyboardEvent) => boolean; altKey: boolean; ctrlKey: boolean; metaKey: boolean; shiftKey: boolean; key: string; private aliases; constructor(shortcut: string, callback: (event: KeyboardEvent) => boolean); }