Releases: github/hotkey
Release list
v2.1.1
What's Changed
- Make
NormalizedHotkeyStringextendNormalizedSequenceStringby @iansan5653 in #106
Full Changelog: v2.1.0...v2.1.1
v2.1.0
New features
- Add a special
Modmodifier that translates to eitherMetaon Mac orControlon other platforms by @theinterned in #66 - Expose tools for building & normalizing hotkey & sequence strings by @iansan5653 in #94
Demos / docs
- Fix website structure by @iansan5653 in #96
- Improve mapper tool accessibility by @iansan5653 in #90
- Add chord/sequence support to mapper tool by @iansan5653 in #91
Other changes
- Add npm package provenance in release workflow by @iansan5653 in #95
New Contributors
- @iansan5653 made their first contribution in #90
Full Changelog: v2.0.1...v2.1.0
v2.0.1
What's Changed
- Use chromium for karma tests by @theinterned in #73
- Add a .devcontainer by @koddsson in #76
- Add a release action by @koddsson in #77
- Explain how to scope hotkeys in README by @3v0k4 in #79
- Allow hotkeys when focusing on
fileinput elements by @akenneth in #80
New Contributors
Full Changelog: v2.0.0...v2.0.1
v2.0.0
What's Changed
- Fix querySelector by quoting templated value by @keithamus in #57
- Add tool to generate correct hotkey string for a given key combination by @theinterned in #59
- Update hotkey README to document hotkey string format by @theinterned in #62
- npm audit fixes by @theinterned in #63
- BREAKING: fixes
eventToHotkeyStringreturns doubled "modifier" when "key" is a modifier by @theinterned in #64 - BREAKING: Support comma as a hotkey by @colinwm in #71
- Update release.yml by @manuelpuyol in #72
New Contributors
- @theinterned made their first contribution in #59
- @colinwm made their first contribution in #71
- @manuelpuyol made their first contribution in #72
Full Changelog: v1.6.0...v2.0.0
v1.6.1
What's Changed
- Fix querySelector by quoting templated value by @keithamus in #57
Full Changelog: v1.6.0...v1.6.1
v1.6.0
v1.5.5
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
This release adds support for scoped hotkeys when the data-hotkey-scope attribute is specified.
v1.4.4
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.