Skip to content

v1.2.0

Compare
Choose a tag to compare
@RobertWHurst RobertWHurst released this 09 Aug 21:23
· 49 commits to master since this release

For this release of Keystrokes I've changed the way key combos are executed so that you can interact with events. This means that things like calling preventDefault are accounted for correctly. This is an important change, and a bit of an glaring omission in my opinion. In anycase it is now possible to call prevent default in a combo as follows:

bindKeyCombo('control > s', (event) => {
  event.finalKeyEvent.preventDefault()
  // ...
})

Special thanks to @silverwind for raising an issue about this.