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

Record Shortcuts (Map Input Event to shortcut string)

Open YeonV opened this issue 1 year ago • 2 comments

First of all: GREAT project!!!! Thank you soo much!

Could you provide function to be used to record a shortcut? A function to be called on an Input Field onChange, returning the shortcut string understandable by useHotkeys() i.e. 'ctrl+alt+y'

So users can map their own shortcut in frontend?

Sorry for this bad english, I hope you can still somehow understand me

Gratefully Blade (YeonV)

YeonV avatar Aug 29 '22 11:08 YeonV

That sounds like a nice additional feature. I put it up on the roadmap to V4, but might land in 4.1 First I'd like to finally finish the major release.

JohannesKlauss avatar Aug 29 '22 12:08 JohannesKlauss

Yooo @JohannesKlauss :) https://yeonv.github.io/io/ image

works like a charm!

if you wanna use some of my noob coding: https://github.com/YeonV/io

YeonV avatar Aug 30 '22 00:08 YeonV

This feature landed in 4.2.0: https://github.com/JohannesKlauss/react-hotkeys-hook/releases/tag/v4.2.0

JohannesKlauss avatar Dec 25 '22 17:12 JohannesKlauss