fl16: Add KC_COPILOT
For Windows 11 24H2 Copilot computers. Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
@@ -305,6 +305,19 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|||||||
unregister_code(KC_LGUI);
|
unregister_code(KC_LGUI);
|
||||||
}
|
}
|
||||||
return false; // Skip all further processing of this key
|
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:
|
default:
|
||||||
return true; // Process all other keycodes normally
|
return true; // Process all other keycodes normally
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ enum framework_keycodes {
|
|||||||
// Custom keycode to change screen modes (e.g. enable external screen)
|
// Custom keycode to change screen modes (e.g. enable external screen)
|
||||||
KC_SCRN = SAFE_RANGE,
|
KC_SCRN = SAFE_RANGE,
|
||||||
FN_LOCK,
|
FN_LOCK,
|
||||||
|
KC_CPLT,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern bool bios_mode;
|
extern bool bios_mode;
|
||||||
|
|||||||
Reference in New Issue
Block a user