react-hotkeys icon indicating copy to clipboard operation
react-hotkeys copied to clipboard

[Feat] Long press hotkeys

Open harjot1singh opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe. The library supports sequences, and chords, which is great for triggering distinct actions in an application.

Suppose you had a ctrl+c hotkey, for copying. Makes sense to everyone, and is intuitive. What if you wanted to display a context menu or carry out an "advanced" execution of the same action?

Perhaps an answer to providing another "dimension" to hotkeys could be a long-press scenario, similar to how long-pressing/holding on mobile devices is a distinct action over a tap.

Describe the solution you'd like Support for long-press hotkey declarations and configurable durations. I'm not sure what this could look like yet, if you wanted duration configuration at the hotkey-level.

Describe alternatives you've considered Application-level mapping of repeating hotkey combos, such as hhhhhh to mean a long press hotkey.

harjot1singh avatar Sep 16 '20 19:09 harjot1singh