Skip to content

Releases: jaywcjlove/hotkeys-js

v3.6.6

07 May 16:24
Compare
Choose a tag to compare
  • 🐞Fix input method editor is processing key input issue. #72 3bbefc8

v3.6.5

07 May 15:57
Compare
Choose a tag to compare

v3.6.4

03 May 17:52
Compare
Choose a tag to compare
  • 🐞Fix multiple key combination binding issues. #68 e469a29

v3.6.3

28 Apr 05:52
Compare
Choose a tag to compare
  • 🐞Fix if keyup: true is set, keydown cannot be triggered. #67 08548d3

v3.6.2

30 Mar 10:02
Compare
Choose a tag to compare
  • 🐞 Fix the issue of keyup don't exist in typings file. #59 da94c8b

v3.6.1

29 Mar 18:00
Compare
Choose a tag to compare
  • 🐞 Fix the issue of 2 and 3 key combinations. #55 efb4950

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

26 Mar 18:22
Compare
Choose a tag to compare
  • 🌟 Support for three-key combination. #55 b0f5d3c
hotkeys('ctrl+a+s', function(event,handler) {
  if(handler.key === 'ctrl+a+s') {
    alert('you pressed ctrl+a+s!');
  }
});

v3.5.1

25 Mar 02:44
Compare
Choose a tag to compare
  • 🐞Fix the issue of the callback function twice. #58 ada36f9

v3.5.0

22 Mar 02:40
Compare
Choose a tag to compare
  • 🌟 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);
  }
});

v3.4.4

11 Feb 17:46
Compare
Choose a tag to compare
  • 🐞Fix unbind with Method (#54) @spencer516 d5f9360
  • 💄Update build script. 982173d
  • 📖Submit the doc directory to npm. Used for document version management. 95632ec
  • 📖Delete the doc directory in the repository. 823b726
  • 📖Update website selection style. b547060