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

Add keyboard layout callback and name query #1696

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elmindreda
Copy link
Member

This adds a global callback for when the keyboard layout changes and a query for the localized, human-readable name of the current layout.

On macOS it also triggers when the mode changes for an IME, for example switching between hiragana and katakana, while on other platforms they are both referred to as Japanese or similar. I don't know whether or how to fix that inconsistency.

On Wayland the name query returns data cached from received events but on other platforms it queries the system directly.

This PR is intended to fix #1201.

This functionality may be affected by IME support work before 3.4 release.

This adds a keyboard layout switch callback and a query for the
human-readable name of the current layout.

Fixes #1201.
@elmindreda elmindreda added enhancement Feature suggestions and PRs macOS Windows Win32 specific (not Cygwin or WSL) X11 Wayland input Keyboard, joystick or mouse labels May 18, 2020
@elmindreda elmindreda added this to the 3.4 milestone May 18, 2020
@elmindreda elmindreda self-assigned this May 18, 2020
@norcalli
Copy link

Does the IME inconsistency on other platforms mean that it won't get notified at all on a change like hiragana/katakana or that the names will just appear to be the same?

@elmindreda elmindreda removed this from the 3.4 milestone Dec 14, 2023
@elmindreda elmindreda added this to the 3.5 milestone Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature suggestions and PRs input Keyboard, joystick or mouse macOS Wayland Windows Win32 specific (not Cygwin or WSL) X11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keyboard layout changed callback
2 participants