mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-11 14:40:06 +00:00
[Keyboard][Phoebe] Send backslash on AltGr + ? (#7616)
This commit is contained in:
parent
4fbb53e817
commit
627d6c154c
1 changed files with 18 additions and 0 deletions
|
@ -100,3 +100,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
KC_SPC, XXXXXXX, _______, _______, _______, _______, _______, G_0, _______, _______, _______
|
KC_SPC, XXXXXXX, _______, _______, _______, _______, _______, G_0, _______, _______, _______
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define MODS_ALGR_MASK (MOD_BIT(KC_ALGR))
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case DE_QST:
|
||||||
|
if (get_mods() & MODS_ALGR_MASK) {
|
||||||
|
if (record->event.pressed) {
|
||||||
|
register_code(DE_SS);
|
||||||
|
} else {
|
||||||
|
unregister_code(DE_SS);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue