mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Update keychron_common.c (#20055)
This commit is contained in:
parent
7654c2a23b
commit
2f7a06cf73
|
@ -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…
Reference in a new issue