| Summary: | Swapping Caps Lock with Esc does not work on Wayland | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Björn Lindqvist <bjourne> |
| Component: | kcm_keyboard | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | bjourne, butirsky, duha.bugs, john.kizer, natalie_clarius |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.4 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Screenshot | ||
|
Description
Björn Lindqvist
2025-04-14 22:11:43 UTC
Hi - for what it's worth, the Swap Esc and Caps Lock function works on my Fedora KDE 41 device in a Wayland session, even though those same journal messages appear. Can you please provide the system information requested in the report template? (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: KDE Plasma Version: KDE Frameworks Version: Qt Version: Based on that journal message, just curious - does the swap not work in either native Wayland or XWayland applications? Thanks! Created attachment 180414 [details]
Screenshot
I was wrong and it does work. Apparently, I had already accidentally allocated the Esc key as shown in the screenshot. Would it be possible to add some smarts to the remapper dialog to detect this scenario? Then it could say "Can't switch Esc and Caps lock because Esc is already mapped to <existing mapping>"?
Hmm, so if you have that layout shortcut from the screenshot set to Esc, then when swapped, the physical Caps Lock key doesn't function as Esc and switch the keyboard layout? Correct. Although as you can see in the screenshot I only have one layout so the Esc binding has no function. I sometimes accidentally assign Esc as I keybinding due to Esc being commonly used for aborting modal dialogs. My configuration is incorrect here, and it would be a nice quality-of-life feature if the UI told me that. I guess the catch is, before you switched Caps Lock and Esc, it sounds like Esc wasn't working anyway since it was bound to a shortcut that did nothing with your device's configuration - is that right? If you assign Esc as a shortcut that does have a function on your device, unlike the keyboard layout change, is it correctly triggered by using the physical Caps Lock key when the Caps Lock-Esc swap is active? That appears to work. Great - if I'm understanding correctly, it sounds like there isn't a direct bug with the swap, and that perhaps a warning might not be needed since functional shortcuts also work when swapped? If I'm misunderstanding that and there's still a bug here, or if it still seems that a shortcut warning in that key bindings dialog would still be needed, feel free to reopen this :-) Thanks! Well, you still get these error messages in the journal and they seem ominous. Ah, as I understand it those messages are from XWayland and aren't really indicating a functional problem, it's basically "noise" from that component - https://bugzilla.redhat.com/show_bug.cgi?id=1615700 - so I wouldn't worry too much there :-) |