From 2baa33e8283eb1efed1939fef02a7c7a115d70d2 Mon Sep 17 00:00:00 2001 From: Jan Almeroth Date: Tue, 2 Apr 2024 21:13:30 +0200 Subject: [PATCH] fix: lets not assume remapped keys fixes https://github.com/hrvach/deskhop/issues/82 --- src/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index b755a21..aa08c35 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -110,7 +110,7 @@ void screenlock_hotkey_handler(device_t *state, hid_keyboard_report_t *report) { lock_report.keycode[0] = HID_KEY_L; break; case MACOS: - lock_report.modifier = KEYBOARD_MODIFIER_LEFTCTRL | KEYBOARD_MODIFIER_LEFTALT; + lock_report.modifier = KEYBOARD_MODIFIER_LEFTCTRL | KEYBOARD_MODIFIER_LEFTGUI; lock_report.keycode[0] = HID_KEY_Q; break; default: