hotkey-focus
v1.0.17
Published
keyboard event simulation
Downloads
17
Maintainers
Readme
KeyFocus
Response direction key switch cursor
Bind listener of keyboard for changing focus in the form component
get start
npm install --save hotkey-focus
// <script src="node_modules/keyfocus/lib/hotkey-focus.esm.js"></script>
import KeyFocus from 'hotkey-focus';
const ins = document.getElementById('form');
const keyFocus = new KeyFocus(ins.children);