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

[electron]: Listen on keyboard layout changes in electron app #11689

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

kittaakos
Copy link
Contributor

What it does

From now on, the electron main sends an event to the frontend via IPC ('keyboardLayoutChanged') if the OS layout changes.

Closes #11688

How to test

I did the following (on macOS):

  • build and start the electron example in debug mode,
  • add a breakpoint to here and here and change your OS layout,
  • you will hit both breakpoints.

Review checklist

Reminder for reviewers

Closes eclipse-theia#11688

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good catch

@paul-marechal paul-marechal merged commit b75b614 into eclipse-theia:master Sep 21, 2022
@vince-fugnitto vince-fugnitto added the electron issues related to the electron target label Sep 29, 2022
@vince-fugnitto vince-fugnitto added this to the 1.30.0 milestone Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron issues related to the electron target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[electron] ElectronNativeKeymap is unused?
3 participants