Skip to content

Commit

Permalink
WIP: Add hardcoded copilot key
Browse files Browse the repository at this point in the history
TODO: Only override if enabled by BIOS setting.

Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Jan 9, 2025
1 parent 9388622 commit 53c94b9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions keyboards/framework/framework.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,20 @@ 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
// TODO: Do this only if enabled by BIOS
case KC_RCTL:
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
}
Expand Down

0 comments on commit 53c94b9

Please sign in to comment.