Open jean-emmanuel opened 4 years ago
Hi, With an azerty keyboard, the input object can looks like this:
{ type: 'keyDown', key: 'w', code: 'KeyZ', // ... } // or { type: 'keyDown', key: 'z', code: 'KeyW', // ... }
The input comparison fails to differentiate these cases. It does not occur with electron global shortcuts.
It seems the root cause is toKeyEvent('w') returning { key: 'w', code: 'KeyW' } regardless of the keyboard layout.
toKeyEvent('w')
{ key: 'w', code: 'KeyW' }
Hi, With an azerty keyboard, the input object can looks like this:
The input comparison fails to differentiate these cases. It does not occur with electron global shortcuts.