hotkeys icon indicating copy to clipboard operation
hotkeys copied to clipboard

Pause hotkey handling

Open timnyborg opened this issue 3 years ago • 2 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[X] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

It is impossible (?) to temporarily disable the handling of hotkeys.

Expected behavior

Run hotkeysService.pause() to temporarily interrupt the handling of hotkeys, and .unpause() to resume handling.

What is the motivation / use case for changing the behavior?

When I display modals in my application, I want to prevent any hotkeys until they are dismissed. It's a simple change, so I'm happy to put together a PR if the functionality would be welcome.

timnyborg avatar Aug 04 '22 15:08 timnyborg

You're welcome to submit a PR

NetanelBasal avatar Aug 05 '22 06:08 NetanelBasal

@NetanelBasal is this feature implemented or open? attempt/#62

Tweniee avatar Nov 07 '23 09:11 Tweniee