Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: "before-input-event" and "input-event" respond with wrong key #41382

Open
3 tasks done
t57ser opened this issue Feb 20, 2024 · 2 comments
Open
3 tasks done

[Bug]: "before-input-event" and "input-event" respond with wrong key #41382

t57ser opened this issue Feb 20, 2024 · 2 comments
Assignees
Labels
29-x-y bug 🪲 has-repro-gist Issue can be reproduced with code at https://gist.github.com/ platform/windows

Comments

@t57ser
Copy link
Contributor

t57ser commented Feb 20, 2024

Preflight Checklist

Electron Version

29.0.0

What operating system are you using?

Windows

Operating System Version

10.0.19042

What arch are you using?

x64

Last Known Working Electron version

28.0.0

Expected Behavior

The event should show the pressed key depending on the current keyboard layout

Actual Behavior

Wrong key is shown

Testcase Gist URL

https://gist.github.com/t57ser/30ad5e0ac634feb13e412408048742ce

Additional Information

My system has the language set to english but keyboard layout is set to german
In electron 28 I received:
before-input-event {
type: 'keyDown',
key: '+',
code: 'BracketRight',
isAutoRepeat: false,
isComposing: false,
shift: false,
control: true,
alt: false,
meta: false,
location: 0,
_modifiers: 1026,
modifiers: [ 'control', 'numlock' ]
}
Notice that the "code" here is wrong but key is correct.
In electron 29, both "key" and "code" are incorrect

I pressed "ctrl +"

@VerteDinde VerteDinde added platform/windows has-repro-gist Issue can be reproduced with code at https://gist.github.com/ 29-x-y labels Feb 20, 2024
@electron-issue-triage
Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@t57ser
Copy link
Contributor Author

t57ser commented May 22, 2024

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
29-x-y bug 🪲 has-repro-gist Issue can be reproduced with code at https://gist.github.com/ platform/windows
Projects
No open projects
Status: 👍 Does Not Block Stable
Development

No branches or pull requests

3 participants