0.0.6 • Published 5 years ago
ngx-hotkey-input v0.0.6
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'}]">