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

wlserver: Create a keyboard group to keep all externally connected keyboards in sync #1726

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

Conversation

oSoMoN
Copy link

@oSoMoN oSoMoN commented Jan 28, 2025

This ensures that all externally connected keyboards share a common layout and state. If a lock modifier (such as Caps Lock or Num Lock) is enabled or disabled on one keyboard, the state will be propagated to all of them.
If a keyboard is disconnected and then reconnected, the layout and state are preserved.

This behavior is consistent with KWin, which is used in desktop mode.

Fixes: ValveSoftware/steam-for-linux#11529

…yboards in sync

This ensures that all externally connected keyboards share a common layout and state.
If a lock modifier (such as Caps Lock or Num Lock) is enabled or disabled on one keyboard,
the state will be propagated to all of them.
If a keyboard is disconnected and then reconnected, the layout and state are preserved.

This behaviour is consistent with KWin, which is used in desktop mode.

Fixes: ValveSoftware/steam-for-linux#11529
@oSoMoN
Copy link
Author

oSoMoN commented Feb 3, 2025

Doing further testing, I noticed one issue with this PR: when I disconnect/unplug a keyboard when Caps Lock was enabled, when I connect it again the state is preserved, so key presses result in capital letters being input, but the state itself isn't updated on the keyboard, so for keyboards with a LED for Caps Lock it isn't being lit, and the next press on Caps Lock doesn't disable the state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bluetooth] - Steam does not restore the state of lock keys upon re-connecting a keyboard.
1 participant