Skip to content

What's the recommended pattern for dealing with setting hotkeys dynamically at runtime? #1145

Closed Answered by prajendra-is
prajendra-is asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone finding this in the future, I followed what was done in the second answer here https://stackoverflow.com/questions/62933902/varying-number-of-hooks-for-keyboard-shortcuts (basically, dynamically create some components; and in the definition of the component, it calls useHotKeys)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by prajendra-is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant