-
Notifications
You must be signed in to change notification settings - Fork 41
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 support for using keyboard layout in Language widget #91
Conversation
It seems to work somewhat, but when I'm running it locally it only updates the layout on start, and then never updates it again, even though the rest of the returned object is updated. Open to suggestions on how to fix! Haven't really written python in ages, and never used Win APIs really, so I'm very rusty. |
Welcome to the Windows API jungle xD |
I have tried to play with that but I have no idea why |
@amnweb Hmm that's sad, idk how we should go forward then, I didn't manage to find another way either :/ I saw in the docs that they recommended using Windows.Globalization.Language.CurrentInputMethodLanguageTag instead. Tried implementing that, but it yielded the same result as
which is basically the only way to use CurrentInputMethodLanguageTag it seems, so that seems like a dead end. We could rename it to |
Co-authored-by: amnweb <[email protected]>
It should now work as expected! Showcase: |
Implements a
layout_name
variable accessible via{lang[layout_name]}
in the Language widget.Closes #90.
This config:
will give this: