Skip to content

Releases: github/hotkey

v2.1.1

Choose a tag to compare

@iansan5653 iansan5653 released this 12 Oct 17:38
dd45427

What's Changed

  • Make NormalizedHotkeyString extend NormalizedSequenceString by @iansan5653 in #106

Full Changelog: v2.1.0...v2.1.1

v2.1.0

Choose a tag to compare

@iansan5653 iansan5653 released this 10 Oct 20:12
3353f4a

New features

  • Add a special Mod modifier that translates to either Meta on Mac or Control on other platforms by @theinterned in #66
  • Expose tools for building & normalizing hotkey & sequence strings by @iansan5653 in #94

Demos / docs

Other changes

  • Add npm package provenance in release workflow by @iansan5653 in #95

New Contributors

Full Changelog: v2.0.1...v2.1.0

v2.0.1

Choose a tag to compare

@akenneth akenneth released this 21 Jul 12:45
f11dd2a

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 31 Jan 23:17

What's Changed

New Contributors

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

v1.6.1

Choose a tag to compare

@github-actions github-actions released this 14 Dec 12:24

What's Changed

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

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

v1.6.0

Choose a tag to compare

@keithamus keithamus released this 04 Oct 16:41
d247c9e

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

v1.5.5

Choose a tag to compare

@khiga8 khiga8 released this 30 Sep 21:16

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

Choose a tag to compare

@manuelpuyol manuelpuyol released this 24 Sep 16:04

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

v1.4.4

Choose a tag to compare

@keithamus keithamus released this 31 Mar 14:42

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

Choose a tag to compare

@keithamus keithamus released this 30 Mar 17:26

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