Détail du package

hotkey-focus

MQpeng30MIT1.0.17

keyboard event simulation

shortcut, hotkeys, focus, form-focus

readme

KeyFocus

Response direction key switch cursor

Bind listener of keyboard for changing focus in the form component

DEMO

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);