diff options
| author | Max Rumpf <max.rumpf1998@gmail.com> | 2019-12-13 05:56:35 +0100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-12-12 20:56:35 -0800 |
| commit | 627d6c154c1bbcdefcd88aaa912fe9cde1817256 (patch) | |
| tree | 51051ba7eb2da898b6ed69c1d4a9e85f6d4a359d | |
| parent | 4fbb53e817b82e2bd3d699ca27766b4d4af0112a (diff) | |
| download | qmk_firmware-627d6c154c1bbcdefcd88aaa912fe9cde1817256.tar.gz qmk_firmware-627d6c154c1bbcdefcd88aaa912fe9cde1817256.zip | |
[Keyboard][Phoebe] Send backslash on AltGr + ? (#7616)
| -rw-r--r-- | keyboards/maxr1998/phoebe/keymaps/default/keymap.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/keyboards/maxr1998/phoebe/keymaps/default/keymap.c b/keyboards/maxr1998/phoebe/keymaps/default/keymap.c index 2d25d85e6..da179c8f2 100644 --- a/keyboards/maxr1998/phoebe/keymaps/default/keymap.c +++ b/keyboards/maxr1998/phoebe/keymaps/default/keymap.c | |||
| @@ -100,3 +100,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 100 | KC_SPC, XXXXXXX, _______, _______, _______, _______, _______, G_0, _______, _______, _______ | 100 | KC_SPC, XXXXXXX, _______, _______, _______, _______, _______, G_0, _______, _______, _______ |
| 101 | ) | 101 | ) |
| 102 | }; | 102 | }; |
| 103 | |||
| 104 | #define MODS_ALGR_MASK (MOD_BIT(KC_ALGR)) | ||
| 105 | |||
| 106 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 107 | switch (keycode) { | ||
| 108 | case DE_QST: | ||
| 109 | if (get_mods() & MODS_ALGR_MASK) { | ||
| 110 | if (record->event.pressed) { | ||
| 111 | register_code(DE_SS); | ||
| 112 | } else { | ||
| 113 | unregister_code(DE_SS); | ||
| 114 | } | ||
| 115 | return false; | ||
| 116 | } | ||
| 117 | break; | ||
| 118 | } | ||
| 119 | return true; | ||
| 120 | }; | ||
