sindresorhus/KeyboardShortcuts

Get all shortcuts names (using dynamic name)

Vincz opened this issue · 0 comments

Vincz commented

Hi!
Is it possible to retrieve all shortcuts but registered with dynamic names? (Without explicitly creating the allCases as in the documentation).

My list of shortcuts is dynamic, so I'm creating them with: KeyboardShortcuts.Name("my_shortcut") and don't keep track of the names I have use. So I need to be able to retrieve all registered shortcuts and remove the ones that are not used anymore.