We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f35fe86 commit 2a06ff3Copy full SHA for 2a06ff3
keyboards/framework/framework.c
@@ -301,14 +301,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
301
return true;
302
#endif
303
case KC_SCRN:
304
- // Simulate press WIN+P
305
- // Works (at least) on Windows and GNOME
+ // Send HID System Display Toggle Int/Ext Mode (usage 0xB5)
306
if (record->event.pressed) {
307
- register_code(KC_LGUI);
308
- register_code(KC_P);
+ host_system_send(SYSTEM_DISPLAY_TOGGLE_INT_EXT);
309
} else {
310
- unregister_code(KC_P);
311
- unregister_code(KC_LGUI);
+ host_system_send(0);
312
}
313
return false; // Skip all further processing of this key
314
// Copilot key
0 commit comments