diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 7a632d709..db52c782f 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c | |||
| @@ -478,6 +478,11 @@ bool process_record_quantum(keyrecord_t *record) { | |||
| 478 | void (*method)(uint8_t) = (record->event.pressed) ? &add_key : &del_key; | 478 | void (*method)(uint8_t) = (record->event.pressed) ? &add_key : &del_key; |
| 479 | uint8_t shifted = get_mods() & ((MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT) | 479 | uint8_t shifted = get_mods() & ((MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT) |
| 480 | |MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))); | 480 | |MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))); |
| 481 | |||
| 482 | #ifdef GRAVE_ESC_CTRL_OVERRIDE | ||
| 483 | if (get_mods() & (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL))) | ||
| 484 | shifted = 0; | ||
| 485 | #endif | ||
| 481 | 486 | ||
| 482 | method(shifted ? KC_GRAVE : KC_ESCAPE); | 487 | method(shifted ? KC_GRAVE : KC_ESCAPE); |
| 483 | send_keyboard_report(); | 488 | send_keyboard_report(); |
