1*2b949d04SAndroid Build Coastguard Worker// Cancel CapsLock when a Shift key is pressed. 2*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 3*2b949d04SAndroid Build Coastguard Workerxkb_symbols "breaks_caps" { 4*2b949d04SAndroid Build Coastguard Worker key <LFSH> { 5*2b949d04SAndroid Build Coastguard Worker type = "ALPHABETIC", 6*2b949d04SAndroid Build Coastguard Worker actions [Group1] = [ 7*2b949d04SAndroid Build Coastguard Worker SetMods(modifiers=Shift), 8*2b949d04SAndroid Build Coastguard Worker SetMods(modifiers=Shift+Lock,clearLocks) 9*2b949d04SAndroid Build Coastguard Worker ] 10*2b949d04SAndroid Build Coastguard Worker }; 11*2b949d04SAndroid Build Coastguard Worker key <RTSH> { 12*2b949d04SAndroid Build Coastguard Worker type = "ALPHABETIC", 13*2b949d04SAndroid Build Coastguard Worker actions [Group1] = [ 14*2b949d04SAndroid Build Coastguard Worker SetMods(modifiers=Shift), 15*2b949d04SAndroid Build Coastguard Worker SetMods(modifiers=Shift+Lock,clearLocks) 16*2b949d04SAndroid Build Coastguard Worker ] 17*2b949d04SAndroid Build Coastguard Worker }; 18*2b949d04SAndroid Build Coastguard Worker}; 19*2b949d04SAndroid Build Coastguard Worker 20*2b949d04SAndroid Build Coastguard Worker 21*2b949d04SAndroid Build Coastguard Worker// Toggle CapsLock when pressed together with the other Shift key. 22*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 23*2b949d04SAndroid Build Coastguard Workerxkb_symbols "lshift_both_capslock" { 24*2b949d04SAndroid Build Coastguard Worker key <LFSH> { 25*2b949d04SAndroid Build Coastguard Worker type[Group1]="TWO_LEVEL", 26*2b949d04SAndroid Build Coastguard Worker symbols[Group1] = [ Shift_L, Caps_Lock ] 27*2b949d04SAndroid Build Coastguard Worker }; 28*2b949d04SAndroid Build Coastguard Worker}; 29*2b949d04SAndroid Build Coastguard Worker// Toggle CapsLock when pressed together with the other Shift key. 30*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 31*2b949d04SAndroid Build Coastguard Workerxkb_symbols "rshift_both_capslock" { 32*2b949d04SAndroid Build Coastguard Worker key <RTSH> { 33*2b949d04SAndroid Build Coastguard Worker type[Group1]="TWO_LEVEL", 34*2b949d04SAndroid Build Coastguard Worker symbols[Group1] = [ Shift_R, Caps_Lock ] 35*2b949d04SAndroid Build Coastguard Worker }; 36*2b949d04SAndroid Build Coastguard Worker}; 37*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 38*2b949d04SAndroid Build Coastguard Workerxkb_symbols "both_capslock" { 39*2b949d04SAndroid Build Coastguard Worker include "shift(lshift_both_capslock)" 40*2b949d04SAndroid Build Coastguard Worker include "shift(rshift_both_capslock)" 41*2b949d04SAndroid Build Coastguard Worker}; 42*2b949d04SAndroid Build Coastguard Worker 43*2b949d04SAndroid Build Coastguard Worker 44*2b949d04SAndroid Build Coastguard Worker// Set CapsLock when pressed with the other Shift key, release it when pressed alone. 45*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 46*2b949d04SAndroid Build Coastguard Workerxkb_symbols "lshift_both_capslock_cancel" { 47*2b949d04SAndroid Build Coastguard Worker key <LFSH> { 48*2b949d04SAndroid Build Coastguard Worker type[Group1]="ALPHABETIC", 49*2b949d04SAndroid Build Coastguard Worker symbols[Group1] = [ Shift_L, Caps_Lock ] 50*2b949d04SAndroid Build Coastguard Worker }; 51*2b949d04SAndroid Build Coastguard Worker}; 52*2b949d04SAndroid Build Coastguard Worker// Set CapsLock when pressed with the other Shift key, release it when pressed alone. 53*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 54*2b949d04SAndroid Build Coastguard Workerxkb_symbols "rshift_both_capslock_cancel" { 55*2b949d04SAndroid Build Coastguard Worker key <RTSH> { 56*2b949d04SAndroid Build Coastguard Worker type[Group1]="ALPHABETIC", 57*2b949d04SAndroid Build Coastguard Worker symbols[Group1] = [ Shift_R, Caps_Lock ] 58*2b949d04SAndroid Build Coastguard Worker }; 59*2b949d04SAndroid Build Coastguard Worker}; 60*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 61*2b949d04SAndroid Build Coastguard Workerxkb_symbols "both_capslock_cancel" { 62*2b949d04SAndroid Build Coastguard Worker include "shift(lshift_both_capslock_cancel)" 63*2b949d04SAndroid Build Coastguard Worker include "shift(rshift_both_capslock_cancel)" 64*2b949d04SAndroid Build Coastguard Worker}; 65*2b949d04SAndroid Build Coastguard Worker 66*2b949d04SAndroid Build Coastguard Worker 67*2b949d04SAndroid Build Coastguard Worker// Toggle ShiftLock when pressed together with the other Shift key. 68*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 69*2b949d04SAndroid Build Coastguard Workerxkb_symbols "lshift_both_shiftlock" { 70*2b949d04SAndroid Build Coastguard Worker key <LFSH> { 71*2b949d04SAndroid Build Coastguard Worker type[Group1]="TWO_LEVEL", 72*2b949d04SAndroid Build Coastguard Worker symbols[Group1] = [ Shift_L, Shift_Lock ] 73*2b949d04SAndroid Build Coastguard Worker }; 74*2b949d04SAndroid Build Coastguard Worker}; 75*2b949d04SAndroid Build Coastguard Worker// Toggle ShiftLock when pressed together with the other Shift key. 76*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 77*2b949d04SAndroid Build Coastguard Workerxkb_symbols "rshift_both_shiftlock" { 78*2b949d04SAndroid Build Coastguard Worker key <RTSH> { 79*2b949d04SAndroid Build Coastguard Worker type[Group1]="TWO_LEVEL", 80*2b949d04SAndroid Build Coastguard Worker symbols[Group1] = [ Shift_R, Shift_Lock ] 81*2b949d04SAndroid Build Coastguard Worker }; 82*2b949d04SAndroid Build Coastguard Worker}; 83*2b949d04SAndroid Build Coastguard Workerpartial modifier_keys 84*2b949d04SAndroid Build Coastguard Workerxkb_symbols "both_shiftlock" { 85*2b949d04SAndroid Build Coastguard Worker include "shift(lshift_both_shiftlock)" 86*2b949d04SAndroid Build Coastguard Worker include "shift(rshift_both_shiftlock)" 87*2b949d04SAndroid Build Coastguard Worker}; 88