How can I get expected behavior for shortcut CMD + C + D?


#1

I have a global shortcut CMD + C + D:

  globalShortcut.register('CmdOrCtrl+C+D', () => {
    throw new Error('shortcut cut is pressed');
  });

But it triggers not only when I press CMD + C + D but when I also press just CMD + D. How can I make it work only on CMD + C + D?

I even opened a github issue in the electron repository but seems it is expected behavior, lol - https://github.com/electron/electron/issues/14818