@ -33,18 +33,18 @@
# define Key_KeymapPrevious_Momentary (Key) { KEYMAP_PREVIOUS + MOMENTARY_OFFSET, KEY_FLAGS | SYNTHETIC | SWITCH_TO_KEYMAP }
# define Key_KeymapPrevious_Momentary (Key) { KEYMAP_PREVIOUS + MOMENTARY_OFFSET, KEY_FLAGS | SYNTHETIC | SWITCH_TO_KEYMAP }
/** Toggle layer `n` on and off .
/** Lock/Unlock layer `n` .
*
*
* Toggle layer ` n ` on and off on subsequent key presses , just like
* When locking a layer , it will remain active until unlocked explicitly . ` n `
* ` Key_Keymap0 ` and friends . ` n ` can be a number , or an enum value declared
* can be a number , or an enum value declared previously .
* previously .
*/
*/
# define ToggleLayer(n) (Key){ n, KEY_FLAGS | SYNTHETIC | SWITCH_TO_KEYMAP }
# define LockLayer(n) (Key){ n, KEY_FLAGS | SYNTHETIC | SWITCH_TO_KEYMAP }
# define UnlockLayer(n) LockLayer(n)
/** Momentarily toggle layer `n` until the key is held .
/** Temporarily shift to layer `n` .
*
*
* Toggle layer ` n ` on for as long as the key is held , and turn it off when
* Shifts to layer ` n ` for as long as the key is held . When the key is
* released , just like ` Key_Keymap0_Momentary ` and friends . ` n ` can be a
* released , the layer shifts back too . ` n ` can be a number , or an enum
* number, or an enum value declared previously .
* value declared previously .
*/
*/
# define Momentary Layer(n) (Key){ n + MOMENTARY_OFFSET, KEY_FLAGS | SYNTHETIC | SWITCH_TO_KEYMAP }
# define ShiftTo Layer(n) (Key){ n + MOMENTARY_OFFSET, KEY_FLAGS | SYNTHETIC | SWITCH_TO_KEYMAP }