diff options
| author | Balz Guenat <balz.guenat@gmail.com> | 2017-08-11 21:43:49 +0200 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-08-11 16:54:10 -0400 |
| commit | 188ed682e37dba98a8ba86240abf182a8a6d4268 (patch) | |
| tree | 972ab2a8c9191751c7a07297bea6080b86093158 | |
| parent | 897ceac26cd4ab4d4204e696bf0e94c7dd3914e0 (diff) | |
| download | qmk_firmware-188ed682e37dba98a8ba86240abf182a8a6d4268.tar.gz qmk_firmware-188ed682e37dba98a8ba86240abf182a8a6d4268.zip | |
add short comment to grave_esc_ctrl_override
| -rw-r--r-- | quantum/quantum.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index db52c782f..aac1d07a9 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -480,6 +480,8 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 480 | |MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))); | 480 | |MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))); |
| 481 | 481 | ||
| 482 | #ifdef GRAVE_ESC_CTRL_OVERRIDE | 482 | #ifdef GRAVE_ESC_CTRL_OVERRIDE |
| 483 | // if CTRL is pressed, ESC is always read as ESC, even if SHIFT or GUI is pressed. | ||
| 484 | // this is handy for the ctrl+shift+esc shortcut on windows, among other things. | ||
| 483 | if (get_mods() & (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL))) | 485 | if (get_mods() & (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL))) |
| 484 | shifted = 0; | 486 | shifted = 0; |
| 485 | #endif | 487 | #endif |
