Skip to content

Commit

Permalink
add short comment to grave_esc_ctrl_override
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzGuenat committed Aug 11, 2017
1 parent 7b8eed9 commit bd38273
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ bool process_record_quantum(keyrecord_t *record) {
|MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI)));

#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)))
shifted = 0;
#endif
Expand Down

0 comments on commit bd38273

Please sign in to comment.