hotkey icon indicating copy to clipboard operation
hotkey copied to clipboard

Trigger an action on an element with a keyboard shortcut.

Results 16 hotkey issues
Sort by recently updated
recently updated
newest added

This is a tracking issue for hotkey version 3 which will introduce a few breaking changes: Some of this was split from https://github.com/github/hotkey/issues/65 ```[tasklist] ### Tasks - [ ] https://github.com/github/hotkey/pull/66...

We are observing a `TypeError` from this line: ```.ts const elideShift = event.code.startsWith('Key') && event.shiftKey && event.key.toUpperCase() === event.key; ``` See: [Sentry](https://sentry.io/organizations/github/issues/?project=1890375&query=is%3Aunresolved+github%2Fhotkey&sort=new&statsPeriod=1h) Though this was first seen 9 months ago,...

I think a useful migration strategy would be to allow serialization/comparison to be overridden as part of the API. When we talk about what this library does that is "novel"...

resolves #56 ## What is this? On Mac, `Meta` (command) is frequently used as the modifier for shortcuts: on Windows and Linux `Control` is used instead. Therefor in order to...

enhancement

`eventToHotKeyString` outputs `?` event as `Shift+?` Since the updates in the latest release which include a logic change to address a different bug, `eventToHotkeyString` is including`Shift` unexpectedly. `?` ==> `Shift+?`...

On a Mac, the `alt` (`option`) key acts as a modifier. For example, when `alt` and `k` are pressed, the serialized event string produced on a Mac is `Alt+˚`, while...

There are many cases where we want to be able to support _either_ the `Meta` or `Control` modifier for a shortcut; as opposed to cases where we support _both_ `Meta`...

enhancement

It seems that the `eventToHotkeyString` function returns `" "` for a spacebar keystroke, as described in the [key values docs](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values#whitespace_keys). But the [`expandHotkeyToEdges` function](https://github.com/github/hotkey/blob/04b4bcfe449bec8e3f1d11d7a2c5dddbb73f7ca1/src/utils.ts#L24-L26) also uses the space character to...

_From a chat with @jscholes off-site:_ This is a difficult sort of mechanism to make accessible for some users, because reliance on keyboard input (or tools that emulate it like...

## Problem Currently `data-hotkey-scope` only supports matching the (`event.target` i.e. the scope) as an `id`, this has a few limitations: 1. I may want to specify multiple elements as the...