fl16: Add KC_COPILOT

For Windows 11 24H2 Copilot computers.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer 2025-01-09 13:53:50 +08:00
parent d89a27a649
commit bd39c5b060
2 changed files with 14 additions and 0 deletions

View File

@ -305,6 +305,19 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
unregister_code(KC_LGUI);
}
return false; // Skip all further processing of this key
// Copilot key
// Simulate press WIN+SHIFT+F23
case KC_CPLT:
if (record->event.pressed) {
register_code(KC_LGUI);
register_code(KC_LSFT);
register_code(KC_F23);
} else {
unregister_code(KC_F23);
unregister_code(KC_LSFT);
unregister_code(KC_LGUI);
}
return false; // Skip all further processing of this key
default:
return true; // Process all other keycodes normally
}

View File

@ -21,6 +21,7 @@ enum framework_keycodes {
// Custom keycode to change screen modes (e.g. enable external screen)
KC_SCRN = SAFE_RANGE,
FN_LOCK,
KC_CPLT,
};
extern bool bios_mode;