parro-it/electron-localshortcut

Can we enable/disable the shortcut at the renderer process?

hackjutsu opened this issue · 3 comments

I want to enable/disable the shortcut based on the status of a UI component, like show or hidden. Is it possible to achieve that on the renderer process?

Yes, it is possible, using disableAll and enableAll methods.

@hackjutsu that solution actually solve your problem?

Yep!