Trigger an action on an element with a keyboard shortcut.
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/github/hotkey/compare/v3.1.0...v3.1.1
Published by iansan5653 10 months ago
eslint-import-resolver-typescript
to dev dependencies by @iansan5653 in https://github.com/github/hotkey/pull/120
Full Changelog: https://github.com/github/hotkey/compare/v3.0.1...v3.1.0
Published by iansan5653 11 months ago
Shift
is used to type an uppercase letter, Shift+
will now be included in the hotkey string (https://github.com/github/hotkey/pull/115). This means authors will need to update hotkey strings which contain capital letters to add Shift
. For example, A
becomes Shift+A
, Mod+U
because Mod+Shift+U
.Mod
and Meta
has been made more consistent: on MacOS, when these keys are used with Shift
, the resulting key name is now normalized to uppercase (https://github.com/github/hotkey/pull/116). This allows using the same Mod
shortcuts on Windows, Linux, and MacOS, but may require updating some hotkey strings to use uppercase letters. For example, Meta+Shift+a
becomes Meta+Shift+A
, and Mod+Shift+A
will work as expected across all operating systems.Published by iansan5653 11 months ago
Alt
is pressed by @iansan5653 in https://github.com/github/hotkey/pull/114
Full Changelog: https://github.com/github/hotkey/compare/v2.3.0...v2.3.1
Published by iansan5653 12 months ago
Space
and Plus
by @iansan5653 in https://github.com/github/hotkey/pull/112
Full Changelog: https://github.com/github/hotkey/compare/v2.2.0...v2.3.0
Published by iansan5653 12 months ago
Full Changelog: https://github.com/github/hotkey/compare/v2.1.1...v2.2.0
Published by iansan5653 about 1 year ago
NormalizedHotkeyString
extend NormalizedSequenceString
by @iansan5653 in https://github.com/github/hotkey/pull/106
Full Changelog: https://github.com/github/hotkey/compare/v2.1.0...v2.1.1
Published by iansan5653 about 1 year ago
Mod
modifier that translates to either Meta
on Mac or Control
on other platforms by @theinterned in https://github.com/github/hotkey/pull/66
Full Changelog: https://github.com/github/hotkey/compare/v2.0.1...v2.1.0
Published by akenneth over 2 years ago
file
input elements by @akenneth in https://github.com/github/hotkey/pull/80
Full Changelog: https://github.com/github/hotkey/compare/v2.0.0...v2.0.1
Published by khiga8 about 3 years ago
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 https://github.com/github/hotkey/pull/49.
When the same hotkey is registered to multiple scoped elements, we can trigger the specific element that matches the criteria.
Published by manuelpuyol about 3 years ago
This release adds support for scoped hotkeys when the data-hotkey-scope
attribute is specified.
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.
Published by keithamus over 3 years ago
This release fixes a bug with how shortcut keys get composed. Now combos like Ctrl+Shift+`
should work correctly.
Published by muan over 4 years ago
defaultPrevented
events don't trigger hotkeysPublished by muan over 4 years ago
Published by dgraham over 4 years ago