Releases: jaywcjlove/hotkeys-js
Releases · jaywcjlove/hotkeys-js
v3.6.6
v3.6.5
v3.6.4
v3.6.3
v3.6.2
v3.6.1
E.g: https://codepen.io/jaywcjlove/pen/dLbNZm
hotkeys('command+shift+z,command+z', function(event,handler) {
console.log('handle', handler.key, event)
});
v3.6.0
v3.5.1
v3.5.0
- 🌟 feat: Option add keyup parameter. #57
keyup
key down
and key up
both perform callback events.
hotkeys('ctrl+a,alt+a+s', { keyup: true }, (evn, handler) => {
if(evn.type === 'keydown') {
console.log('keydown:', evn.type, handler, handler.key);
}
if(evn.type === 'keyup') {
console.log('keyup:', evn.type, handler, handler.key);
}
});