diff options
author | Drashna Jael're <drashna@live.com> | 2023-03-16 00:50:29 -0700 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2023-03-16 00:50:29 -0700 |
commit | 72da3ee63e110392bebaa64dd7d862fb99097505 (patch) | |
tree | 7c29d38a3fd30772007bd526f8a9f284c61d9768 /keyboards/keychron | |
parent | 62943fa93ea7c5f19d8296155ca30f49ca8a3b26 (diff) | |
parent | 2f7a06cf739fc97b9f590ef137e15a76eaaa3df2 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/keychron')
-rw-r--r-- | keyboards/keychron/common/keychron_common.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/keyboards/keychron/common/keychron_common.c b/keyboards/keychron/common/keychron_common.c index a04f3b7264..a6250966f3 100644 --- a/keyboards/keychron/common/keychron_common.c +++ b/keyboards/keychron/common/keychron_common.c @@ -41,6 +41,20 @@ void housekeeping_task_keychron(void) { bool process_record_keychron(uint16_t keycode, keyrecord_t *record) { switch (keycode) { + case QK_KB_0: + if (record->event.pressed) { + register_code(KC_MISSION_CONTROL); + } else { + unregister_code(KC_MISSION_CONTROL); + } + return false; // Skip all further processing of this key + case QK_KB_1: + if (record->event.pressed) { + register_code(KC_LAUNCHPAD); + } else { + unregister_code(KC_LAUNCHPAD); + } + return false; // Skip all further processing of this key case KC_LOPTN: case KC_ROPTN: case KC_LCMMD: |