Skip to content

RFC: add an option to seemingly unlock the Lock modifier on PRESSING Caps Lock

Ghost User requested to merge (removed):unlock-caps-early into master

With this new 'caps:unlock_early' option, when the CAPS key is pressed a second time (that is: when the Lock modifier is in the locked state), the action part of the key locks both the Shift and the Lock modifier, with as result that the two cancel each other -- for alphabetic keys; for non-alphabetic keys Shift will be active. Both modifiers are unlocked when Caps Lock is released again.

This option can be useful for people who type uppercase letters with a quick <CapsLock> <letter> <CapsLock> dance, as now they don't need to have fully released the second <CapsLock> before typing further letters. They will, however, need to have fully released the second <CapsLock> before typing non-letters, as otherwise they will get the symbol from the second level of that key instead of the symbol from the first level.

Support for the 'affect' flag has been in xkbcomp since version 1.4.3 from two years ago.

This addresses xorg/xserver#312 and addresses xorg/app/xkbcomp#16 (closed).

Signed-off-by: Andreas Wettstein wettstein509@solnet.ch

Signed-off-by: Benno Schulenberg bensberg@telfort.nl

Edited by Ghost User

Merge request reports