-
Notifications
You must be signed in to change notification settings - Fork 17.1k
bug: Pressing AltGr key wrongly interpreted as Alt #49737
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 bug report that matches the one I want to file, without success.
Electron Version
- 39.4.0
- 40.1.0 (tested with fiddle)
What operating system(s) are you using?
Other Linux
Operating System Version
Linux 6.12.64-1-MANJARO SMP PREEMPT_DYNAMIC x86_64 GNU/Linux, GNOME Shell 49.3
What arch are you using?
x64
Last Known Working Electron version
No response
Does the issue also appear in Chromium / Google Chrome?
No
Expected Behavior
E.g., I am writing a text in a messaging application (observed both for Signal Desktop and Element) and pressing AltGr (which is a modifier in the keyboard layout I use, neo-layout), should keep the focus on the input field and allow continuing typing the message.
Actual Behavior
Pressing AltGr instead is interpreted as pressing the Alt key, opens the menu bar and looses the focus from the input field.
Testcase Gist URL
The simplest Hello World example which is opened when a new Fiddle is created in the fiddle app, is enough to demonstrate the behaviour. Maybe add a little <input></input> field in the HTML. Focus on the input field, type a bit, press AltGr, that gets out of focus.
Additional Information
I initially thought of issuing the bug report to Signal app, but then realized that this is something that is not only for Signal, but all electron-based apps. When clicking AltGr in other desktop apps (like Firefox, Thunderbird), it does not open the menu bar.
Possibly related: #13895