Skip to content

Commit 2a06ff3

Browse files
committed
fl16: Use standard "System Display Toggle Int/Ext Mode" instead of WIN+P
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent f35fe86 commit 2a06ff3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

keyboards/framework/framework.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,14 +301,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
301301
return true;
302302
#endif
303303
case KC_SCRN:
304-
// Simulate press WIN+P
305-
// Works (at least) on Windows and GNOME
304+
// Send HID System Display Toggle Int/Ext Mode (usage 0xB5)
306305
if (record->event.pressed) {
307-
register_code(KC_LGUI);
308-
register_code(KC_P);
306+
host_system_send(SYSTEM_DISPLAY_TOGGLE_INT_EXT);
309307
} else {
310-
unregister_code(KC_P);
311-
unregister_code(KC_LGUI);
308+
host_system_send(0);
312309
}
313310
return false; // Skip all further processing of this key
314311
// Copilot key

0 commit comments

Comments
 (0)