2013-10-26 11:49:57 -06:00
|
|
|
// Cancel CapsLock when a Shift key is pressed.
|
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "breaks_caps" {
|
|
|
|
key <LFSH> {
|
|
|
|
type = "ALPHABETIC",
|
|
|
|
actions [Group1] = [
|
|
|
|
SetMods(modifiers=Shift),
|
|
|
|
SetMods(modifiers=Shift+Lock,clearLocks)
|
|
|
|
]
|
|
|
|
};
|
|
|
|
key <RTSH> {
|
|
|
|
type = "ALPHABETIC",
|
|
|
|
actions [Group1] = [
|
|
|
|
SetMods(modifiers=Shift),
|
|
|
|
SetMods(modifiers=Shift+Lock,clearLocks)
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
2011-01-10 07:25:56 -07:00
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
|
|
|
|
// Toggle CapsLock when pressed together with the other Shift key.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "lshift_both_capslock" {
|
|
|
|
key <LFSH> {
|
|
|
|
type[Group1]="TWO_LEVEL",
|
2013-10-26 11:49:57 -06:00
|
|
|
symbols[Group1] = [ Shift_L, Caps_Lock ]
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
// Toggle CapsLock when pressed together with the other Shift key.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "rshift_both_capslock" {
|
|
|
|
key <RTSH> {
|
|
|
|
type[Group1]="TWO_LEVEL",
|
2013-10-26 11:49:57 -06:00
|
|
|
symbols[Group1] = [ Shift_R, Caps_Lock ]
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "both_capslock" {
|
|
|
|
include "shift(lshift_both_capslock)"
|
|
|
|
include "shift(rshift_both_capslock)"
|
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
|
|
|
|
// Set CapsLock when pressed with the other Shift key, release it when pressed alone.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "lshift_both_capslock_cancel" {
|
|
|
|
key <LFSH> {
|
|
|
|
type[Group1]="ALPHABETIC",
|
2013-10-26 11:49:57 -06:00
|
|
|
symbols[Group1] = [ Shift_L, Caps_Lock ]
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
// Set CapsLock when pressed with the other Shift key, release it when pressed alone.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "rshift_both_capslock_cancel" {
|
|
|
|
key <RTSH> {
|
|
|
|
type[Group1]="ALPHABETIC",
|
2013-10-26 11:49:57 -06:00
|
|
|
symbols[Group1] = [ Shift_R, Caps_Lock ]
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "both_capslock_cancel" {
|
|
|
|
include "shift(lshift_both_capslock_cancel)"
|
|
|
|
include "shift(rshift_both_capslock_cancel)"
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Toggle ShiftLock when pressed together with the other Shift key.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "lshift_both_shiftlock" {
|
|
|
|
key <LFSH> {
|
|
|
|
type[Group1]="TWO_LEVEL",
|
2013-10-26 11:49:57 -06:00
|
|
|
symbols[Group1] = [ Shift_L, Shift_Lock ]
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
};
|
2013-10-26 11:49:57 -06:00
|
|
|
// Toggle ShiftLock when pressed together with the other Shift key.
|
2011-01-10 07:25:56 -07:00
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "rshift_both_shiftlock" {
|
|
|
|
key <RTSH> {
|
|
|
|
type[Group1]="TWO_LEVEL",
|
2013-10-26 11:49:57 -06:00
|
|
|
symbols[Group1] = [ Shift_R, Shift_Lock ]
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
partial modifier_keys
|
|
|
|
xkb_symbols "both_shiftlock" {
|
|
|
|
include "shift(lshift_both_shiftlock)"
|
|
|
|
include "shift(rshift_both_shiftlock)"
|
|
|
|
};
|