Skip to content

Releases: github/hotkey

v2.0.0

31 Jan 23:17
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.6.0...v2.0.0

v1.6.1

14 Dec 12:24
Compare
Choose a tag to compare

What's Changed

  • Fix querySelector by quoting templated value by @keithamus in #57

Full Changelog: v1.6.0...v1.6.1

v1.6.0

04 Oct 16:41
d247c9e
Compare
Choose a tag to compare

This release adds a hotkey-fire cancelable event which is dispatched before the hotkey is invoked (button clicks, field focussed, etc).

v1.5.5

30 Sep 21:16
Compare
Choose a tag to compare

Before, the last registered element was always returned when multiple elements were registered with the same hotkey.

This PR changes this behavior for scoped hotkeys which were introduced in #49.

When the same hotkey is registered to multiple scoped elements, we can trigger the specific element that matches the criteria.

v.1.5.3

24 Sep 16:04
Compare
Choose a tag to compare

This release adds support for scoped hotkeys when the data-hotkey-scope attribute is specified.

v1.4.4

31 Mar 14:42
Compare
Choose a tag to compare

This fixes a regression in the eventToHotkeyString function in 1.4.3 which was caused by trying to normalise the event.key toUpperCase. The regression was because on macos the "Meta+Shift" plane is always lowercase, which is contrary to other operating systems. This is a regression because that was expected behavior as part of this package, and the fix in 1.4.3 broke this expectation while trying to fix another bug.

This change respects the event.key spacing, and elides the shift key only when the event.key matches case, returning Meta+Shift+p as a viable shortcut.

v1.4.3

30 Mar 17:26
Compare
Choose a tag to compare

This release fixes a bug with how shortcut keys get composed. Now combos like Ctrl+Shift+` should work correctly.

v1.4.2

24 Jun 20:34
0691586
Compare
Choose a tag to compare
  • Ensure defaultPrevented events don't trigger hotkeys

v1.4.1

03 Jun 21:13
5498eb1
Compare
Choose a tag to compare
  • Convert to TypeScript/remove Flow type support.
  • Package is now type module. UMD build is removed.

1.4.0

10 Apr 22:30
v1.4.0
Compare
Choose a tag to compare
  • Remove syntax transformations in module output #27