Browse Source

Update keychron_common.c (#20055)

pull/20141/head
lalalademaxiya1 1 year ago
committed by GitHub
parent
commit
2f7a06cf73
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      keyboards/keychron/common/keychron_common.c

+ 14
- 0
keyboards/keychron/common/keychron_common.c View File

@ -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:


Loading…
Cancel
Save