Skip to content

bug: Pressing AltGr key wrongly interpreted as Alt #49737

@mahlzahn

Description

@mahlzahn

Preflight Checklist

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

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions