NgxHotkeyInput
Library to trigger acctions on keyboard inputs into html elements focusable
Usage:
-
Install package: npm i ngx-hotkey-input
-
Import into Module
imports: [ NgxHotkeyInputModule ],
- Insert a directive into html
<input ngx-hotkeyinput [hotkeys]="[{keys:['enter'], callback: proximoFocus.bind(this, 'Enter2'), method: 'function'}]">