-
Notifications
You must be signed in to change notification settings - Fork 17k
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Electron Version
11.1
What operating system are you using?
Windows
Operating System Version
Windows 10 2004
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When registering the back quote or single quote, the keystroke that triggers the event should be the same that was used to register it.
Ideally, the event would trigger when pressing the key that was registered only while using the keyboard layout that was being used when the key was registered. In other words, If I register back quote using UK layout and switch to US layout, the back quote should not trigger the event.
Actual Behavior
When I register the back quote (`) the event triggers when pressing the back quote using the US layout, it also triggers when pressing the single quote using the UK layout.
When I register the single quote (') the event triggers when pressing the single quote using the US layout, it does not trigger when pressing either the single quote or back quote using the UK layout.
Testcase Gist URL
Additional Information
This was found while using Terminus, a issue was filed there to follow this bug. After investigation I found the culprit was not Terminus but electron.