Browse Source

add option to let ctrl override shift/gui for the GRAVE_ESC.

This enables the ctrl+shift+esc shortcut to task manager on windows.
pull/1569/merge
Balz Guenat 6 years ago
committed by Jack Humbert
parent
commit
897ceac26c
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      keyboards/bananasplit/keymaps/coloneljesus/config.h
  2. +5
    -0
      quantum/quantum.c

+ 1
- 0
keyboards/bananasplit/keymaps/coloneljesus/config.h View File

@ -20,5 +20,6 @@
#include "../../config.h"
// place overrides here
#define GRAVE_ESC_CTRL_OVERRIDE
#endif

+ 5
- 0
quantum/quantum.c View File

@ -478,6 +478,11 @@ bool process_record_quantum(keyrecord_t *record) {
void (*method)(uint8_t) = (record->event.pressed) ? &add_key : &del_key;
uint8_t shifted = get_mods() & ((MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)
|MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI)));
#ifdef GRAVE_ESC_CTRL_OVERRIDE
if (get_mods() & (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)))
shifted = 0;
#endif
method(shifted ? KC_GRAVE : KC_ESCAPE);
send_keyboard_report();


Loading…
Cancel
Save