Added Grave Escape (#1391)

* added QK_GRAVE_ESC and KC_GESC

* fixed name

* Fixed keycode emnu

* Removed layer check, added left and right GUI mod detection for OSX GUI+~
This commit is contained in:
jamesofarrell 2017-06-17 07:56:50 +10:00 committed by skullydazed
parent ff2b01da49
commit 98316ef017
2 changed files with 11 additions and 0 deletions

View file

@ -437,6 +437,14 @@ bool process_record_quantum(keyrecord_t *record) {
return false;
// break;
}
case GRAVE_ESC: {
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)));
method(shifted ? KC_GRAVE : KC_ESCAPE);
send_keyboard_report();
}
default: {
shift_interrupted[0] = true;
shift_interrupted[1] = true;