Skip to content

Commit

Permalink
Update keychron_common.c (#20055)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeychronMacro authored Mar 16, 2023
1 parent 7654c2a commit 2f7a06c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions keyboards/keychron/common/keychron_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2f7a06c

Please sign in to comment.