-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Shortcuts don't work in AppVMs when keyboard layout is switched to non-us
#6690
Comments
Setting only non-latin layout breaks hotkeys in various applications, so setup secondary 'us' to propagated from dom0. Fixes QubesOS/qubes-issues#5431 Fixes QubesOS/qubes-issues#6690
Setting only non-latin layout breaks hotkeys in various applications, so setup secondary 'us' to propagated from dom0. Fixes QubesOS/qubes-issues#5431 Fixes QubesOS/qubes-issues#6690
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
Qubes OS version
4.1
Are you using any testing repositories? If so, please list them and where they are enabled (i.e., dom0, TemplateVM, or StandaloneVM).
Yes, enabled
qubes-*testing
and only in dom0.Are you providing feedback about a specific package or packages in testing?
Not a specific version, this is feedback on how keyboard layout switching works in general in
gui-agent-linux
for Qubes 4.1Affected component(s) or functionality
/usr/lib/qubes/qubes-keymap.sh
(and the corresponding dom0 component, whatever that is)Brief summary
If I have multiple separate keyboard layouts configured in dom0, say
us,bg
, keyboard shortcuts (Ctrl+C, Ctrl+W, etc.) in AppVMs break when I switch to the non-us
layout.If I kill
qubes-keymap.sh
and manually run something likesetxkbmap -layout "us,bg" -variant ",phonetic" -option grp:alt_shift_toggle
in the AppVM, keyboard shortcuts will work in bothbg
anden
layouts.How Reproducible
Completely
To Reproduce
Steps to reproduce the behavior:
us
oneExpected behavior
Keyboard shortcuts work in all keyboard layouts.
Actual behavior
Keyboard shortcuts don't work in anything except the
us
layout.Additional context
I added some debugging to see exactly what
setxkbmap
commands get called by/usr/lib/qubes/qubes-keymap.sh
when I switch layouts, and this is what I got:Not sure why
setxkbmap
gets called twice on every layout shift, that's probably another more minor bug (the second call doesn't really matter). But it's obvious that it's leaving just a single layout enabled in the AppVM at any one time, and keyboard shortcuts are broken when that's noten
.Solutions you've tried
As mentioned before, killing
qubes-keymap.sh
and manually settingsetxkbmap -layout "us,bg" -variant ",phonetic" -option grp:ctrl_shift_toggle
in the AppVM works, keyboard shortcuts work even in thebg
layout.So, my suggested solution here is for
qubes-keymap.sh
to leave all of the enabled layouts in the AppVMs instead of just a single one, just to shift which one is first. Something like this, with my example:For some reason, this makes shortcuts work even when the active layout is not
us
(see 1, 2, 3) 🤷♂️I'd be willing to try submitting a patch if someone points me to the dom0 code that's updating the
keyboard-layout
qubesdb property.Related, non-duplicate issues
None that I could find, most of the keyboard layout issues were about QubesOS 4.0 or earlier, not 4.1.
The text was updated successfully, but these errors were encountered: