commit 2f7a06cf739fc97b9f590ef137e15a76eaaa3df2 parent 7654c2a23b183f10c706bc6511d151ecc441fa7d Author: lalalademaxiya1 <66767061+lalalademaxiya1@users.noreply.github.com> Date: Thu, 16 Mar 2023 09:30:09 +0800 Update keychron_common.c (#20055) Diffstat:
| M | keyboards/keychron/common/keychron_common.c | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git 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: