"ctrl:swapcaps" doesn't swap shift+capslock and shift+ctrl

Bug #2002869 reported by IRIE Shinsuke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xkeyboard-config (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu: 22.10
xkb-data: 2.35.1-1
keyboard layout: jp106

I enable a xkb option "ctrl:swapcaps" and often use shift+ctrl modifier key combinations like shift+ctrl+T.

Expected:

Both pressing [shift]+[capslock] and [capslock]+[shift] should work as shift+ctrl modifier.

What happened:

[capslock]+[shift] works as expected, but [shift]+[capslock] still works as shift+capslock.

This behavior is very confusing and annoying to me.

Workaround:

The problem can be avoided by editing /usr/share/X11/xkb/symbols/ctrl as follows.

--- ctrl.orig 2022-02-09 02:13:55.000000000 +0900
+++ ctrl 2023-01-14 18:57:15.589534502 +0900
@@ -14,7 +14,7 @@
 // Swap the functions of the CapsLock key and the left Ctrl key.
 partial modifier_keys
 xkb_symbols "swapcaps" {
- replace key <CAPS> { [ Control_L ] };
+ replace key <CAPS> { [ Control_L, Control_L ] };
     replace key <LCTL> { [ Caps_Lock ] };
     modifier_map Control { <CAPS> };
     modifier_map Lock { <LCTL> };

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for your report!

That kind of issue is really upstream in nature, and nothing we would like to change in Ubuntu only. So it would be great if you could submit an upstream issue too:

https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues

If you do, please add a comment here with the URL.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.