]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
add short comment to grave_esc_ctrl_override
authorBalz Guenat <balz.guenat@gmail.com>
Fri, 11 Aug 2017 19:43:49 +0000 (21:43 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Aug 2017 19:43:49 +0000 (21:43 +0200)
quantum/quantum.c

index 8f8cec484750ff30b12427379910e38514386014..d1969fc5ba1f087e92e5daf46f171a7a494510b5 100644 (file)
@@ -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