I'm trying to disable Cmd+R or F5 for refreshing my electron app like so:
globalShortcut.register('CommandOrControl+R', () => false);
globalShortcut.register('F5', () => false);
But, unfortunately, it cause preventing refresh entirely for all frames, even for other browsers.
How can I register such shortcuts only for my created window?
ALTERNATIVE: I guess, we could use Mousetrap as an option for such operation, but I wonder - is there any kinda built in method for such operation?