Public bug reported: 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> }; ** Affects: xkeyboard-config (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to xkeyboard-config in Ubuntu. https://bugs.launchpad.net/bugs/2002869 Title: "ctrl:swapcaps" doesn't swap shift+capslock and shift+ctrl Status in xkeyboard-config package in Ubuntu: New 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> }; To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/2002869/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp