If I define register for Ctrl + Z or Ctrl + Y for undo and redo, only the one defined first is executed, regardless of whether Ctrl + Z or Ctrl + Y is typed on keyboard. I use a qwertz keyboard for input.
electronLocalshortcut.register(win, 'Ctrl+Z', () => {
... [executed if Ctrl + Z or Ctrl + Y is pressed]
});
electronLocalshortcut.register(win, 'Ctrl+Y', () => {
... [never executed]
});
If I define register for Ctrl + Z or Ctrl + Y for undo and redo, only the one defined first is executed, regardless of whether Ctrl + Z or Ctrl + Y is typed on keyboard. I use a qwertz keyboard for input.