mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 02:30:07 +00:00
add short comment to grave_esc_ctrl_override
This commit is contained in:
parent
7b8eed9f29
commit
bd38273f6f
1 changed files with 2 additions and 0 deletions
|
@ -477,6 +477,8 @@ bool process_record_quantum(keyrecord_t *record) {
|
||||||
|MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI)));
|
|MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI)));
|
||||||
|
|
||||||
#ifdef GRAVE_ESC_CTRL_OVERRIDE
|
#ifdef GRAVE_ESC_CTRL_OVERRIDE
|
||||||
|
// if CTRL is pressed, ESC is always read as ESC, even if SHIFT or GUI is pressed.
|
||||||
|
// this is handy for the ctrl+shift+esc shortcut on windows, among other things.
|
||||||
if (get_mods() & (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)))
|
if (get_mods() & (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)))
|
||||||
shifted = 0;
|
shifted = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue