mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-16 08:56:11 +00:00
050472a4d0
Co-authored-by: Drashna Jaelre <drashna@live.com>
19 lines
465 B
Modula-2
19 lines
465 B
Modula-2
// mod lock keys. takes keymods not mods.
|
|
// keycode should be defined in custom_keys.def.
|
|
// custom key, modkey to activate
|
|
MODL(ML_LSFT, KC_LSFT)
|
|
MODL(ML_LCTL, KC_LCTL)
|
|
MODL(ML_LALT, KC_LALT)
|
|
MODL(ML_LGUI, KC_LGUI)
|
|
|
|
// Keycodes which will NOT cancel mod lock mode.
|
|
IGNORE_KC( KC_LEFT)
|
|
IGNORE_KC( KC_RGHT)
|
|
IGNORE_KC( KC_UP)
|
|
IGNORE_KC( KC_DOWN)
|
|
IGNORE_KC( KC_HOME)
|
|
IGNORE_KC( KC_END)
|
|
IGNORE_KC( ML_LALT)
|
|
IGNORE_KC( ML_LCTL)
|
|
IGNORE_KC( ML_LGUI)
|
|
IGNORE_KC( ML_LSFT)
|