diff options
| -rw-r--r-- | keyboards/bananasplit/keymaps/coloneljesus/config.h | 1 | ||||
| -rw-r--r-- | quantum/quantum.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/keyboards/bananasplit/keymaps/coloneljesus/config.h b/keyboards/bananasplit/keymaps/coloneljesus/config.h index 060f5922f..af6cf8ef1 100644 --- a/keyboards/bananasplit/keymaps/coloneljesus/config.h +++ b/keyboards/bananasplit/keymaps/coloneljesus/config.h | |||
| @@ -20,5 +20,6 @@ | |||
| 20 | #include "../../config.h" | 20 | #include "../../config.h" |
| 21 | 21 | ||
| 22 | // place overrides here | 22 | // place overrides here |
| 23 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 23 | 24 | ||
| 24 | #endif | 25 | #endif |
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(); |
