diff --git a/keyboards/framework/framework.c b/keyboards/framework/framework.c index 1749229ceb..743b897709 100644 --- a/keyboards/framework/framework.c +++ b/keyboards/framework/framework.c @@ -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 } diff --git a/keyboards/framework/framework.h b/keyboards/framework/framework.h index e69556f160..c1e7121cd6 100644 --- a/keyboards/framework/framework.h +++ b/keyboards/framework/framework.h @@ -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;