Bug 462299

Summary: [Feature Request] Map Caps Lock to do nothing, instead of outright disabling
Product: [Applications] systemsettings Reporter: spamless.9v5xj
Component: kcm_keyboardAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: wishlist CC: butirsky
Priority: NOR    
Version First Reported In: 5.26.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description spamless.9v5xj 2022-11-27 07:29:59 UTC
With the slow rise of Linux gaming, many games make use of Caps Lock for input, however this does create the inconvenient side effect of toggling capitalization.

Thus it would be helpful if the ability to make Caps Lock register presses, but not do anything, be added.

This is already possible from command line with 'setxkbmap -option caps:none', so implementation should be a relatively simple adding a new entry in the GUI.
Comment 1 spamless.9v5xj 2022-11-27 07:36:57 UTC
Actually, it might be slightly more complicated - some programs will register Caps Lock in this state, but others don't, so some sort of catcher program that translates the input might be needed.

Although this might be something that should be delegated downstream to Valve and Proton to handle.
Comment 2 Andrey 2022-11-27 09:42:09 UTC
(In reply to spamless.9v5xj from comment #0)
> 'setxkbmap -option caps:none'
Does't "Caps lock disabled" option in Advanced tab of Keyboard KCM do the same?
Comment 3 spamless.9v5xj 2022-11-27 11:21:34 UTC
Does it? I was under the impression it disabled the key entirely so no input was sent. I'll have to investigate, then.
Comment 4 spamless.9v5xj 2022-11-27 11:38:24 UTC
Huh, so it does. I guess the issue is that the program checks Caps Lock via detecting for a state toggle, then.

This seems beyond KDE's scope, so I'm closing this as downstream.