1797b363dSmrg// Cancel CapsLock when a Shift key is pressed. 2797b363dSmrgpartial modifier_keys 3154daed1Smrgxkb_symbols "breaks_caps" { 4154daed1Smrg key <LFSH> { 546185892Smrg type[group1] = "ALPHABETIC", 646185892Smrg actions[group1] = [ SetMods(modifiers=Shift), 746185892Smrg SetMods(modifiers=Shift+Lock,clearLocks) ] 8154daed1Smrg }; 9154daed1Smrg key <RTSH> { 1046185892Smrg type[group1] = "ALPHABETIC", 1146185892Smrg actions[group1] = [ SetMods(modifiers=Shift), 1246185892Smrg SetMods(modifiers=Shift+Lock,clearLocks) ] 13154daed1Smrg }; 14154daed1Smrg}; 15c067fea9Sghen 16797b363dSmrg 17797b363dSmrg// Toggle CapsLock when pressed together with the other Shift key. 18c067fea9Sghenpartial modifier_keys 19c067fea9Sghenxkb_symbols "lshift_both_capslock" { 2046185892Smrg key <LFSH> {[ Shift_L, Caps_Lock ], type[group1]="TWO_LEVEL" }; 21c067fea9Sghen}; 2246185892Smrg 23797b363dSmrg// Toggle CapsLock when pressed together with the other Shift key. 24c067fea9Sghenpartial modifier_keys 25c067fea9Sghenxkb_symbols "rshift_both_capslock" { 2646185892Smrg key <RTSH> {[ Shift_R, Caps_Lock ], type[group1]="TWO_LEVEL" }; 27c067fea9Sghen}; 28c067fea9Sghenpartial modifier_keys 29c067fea9Sghenxkb_symbols "both_capslock" { 3046185892Smrg include "shift(lshift_both_capslock)" 3146185892Smrg include "shift(rshift_both_capslock)" 32c067fea9Sghen}; 33c067fea9Sghen 34797b363dSmrg 35797b363dSmrg// Set CapsLock when pressed with the other Shift key, release it when pressed alone. 36c067fea9Sghenpartial modifier_keys 37c067fea9Sghenxkb_symbols "lshift_both_capslock_cancel" { 3846185892Smrg key <LFSH> {[ Shift_L, Caps_Lock ], type[group1]="ALPHABETIC" }; 39c067fea9Sghen}; 4046185892Smrg 41797b363dSmrg// Set CapsLock when pressed with the other Shift key, release it when pressed alone. 42c067fea9Sghenpartial modifier_keys 43c067fea9Sghenxkb_symbols "rshift_both_capslock_cancel" { 4446185892Smrg key <RTSH> {[ Shift_R, Caps_Lock ], type[group1]="ALPHABETIC" }; 45c067fea9Sghen}; 4646185892Smrg 47c067fea9Sghenpartial modifier_keys 48c067fea9Sghenxkb_symbols "both_capslock_cancel" { 4946185892Smrg include "shift(lshift_both_capslock_cancel)" 5046185892Smrg include "shift(rshift_both_capslock_cancel)" 51c067fea9Sghen}; 52c067fea9Sghen 53c067fea9Sghen 54797b363dSmrg// Toggle ShiftLock when pressed together with the other Shift key. 55c067fea9Sghenpartial modifier_keys 56c067fea9Sghenxkb_symbols "lshift_both_shiftlock" { 5746185892Smrg key <LFSH> {[ Shift_L, Shift_Lock ], type[group1]="TWO_LEVEL" }; 58c067fea9Sghen}; 5946185892Smrg 60797b363dSmrg// Toggle ShiftLock when pressed together with the other Shift key. 61c067fea9Sghenpartial modifier_keys 62c067fea9Sghenxkb_symbols "rshift_both_shiftlock" { 6346185892Smrg key <RTSH> {[ Shift_R, Shift_Lock ], type[group1]="TWO_LEVEL" }; 64c067fea9Sghen}; 6546185892Smrg 66c067fea9Sghenpartial modifier_keys 67c067fea9Sghenxkb_symbols "both_shiftlock" { 6846185892Smrg include "shift(lshift_both_shiftlock)" 6946185892Smrg include "shift(rshift_both_shiftlock)" 70c067fea9Sghen}; 71