summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Rumpf <max.rumpf1998@gmail.com>2019-12-13 05:56:35 +0100
committerDrashna Jaelre <drashna@live.com>2019-12-12 20:56:35 -0800
commit627d6c154c1bbcdefcd88aaa912fe9cde1817256 (patch)
tree51051ba7eb2da898b6ed69c1d4a9e85f6d4a359d
parent4fbb53e817b82e2bd3d699ca27766b4d4af0112a (diff)
[Keyboard][Phoebe] Send backslash on AltGr + ? (#7616)
-rw-r--r--keyboards/maxr1998/phoebe/keymaps/default/keymap.c18
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 2d25d85e6c..da179c8f27 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] = {
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;
+};