Reputation: 363
I want to disable the windows key on my electron app . Is there any way to disable windows key. I have tried global shortcuts but it is not working.
Any help is appreciated. Thanks !
Upvotes: 0
Views: 802
Reputation: 76
The windows key in Electron is the Super key. Create a globalshortcut for that, and you're good to go. It will now be redirected to your app when it is pressed.
https://www.electronjs.org/docs/api/accelerator#available-modifiers
Upvotes: 1