[fix] fix macOS remote keyboard modifier injection, fixes #81

This commit is contained in:
dijunkun
2026-05-21 00:15:43 +08:00
parent 515d517a99
commit 1e29ec708f
5 changed files with 182 additions and 1 deletions
@@ -10,6 +10,7 @@
#include <ApplicationServices/ApplicationServices.h>
#include "device_controller.h"
#include "macos_keyboard_modifier_state.h"
namespace crossdesk {
@@ -36,6 +37,7 @@ class KeyboardCapturer : public DeviceController {
bool option_flag_ = false;
bool command_flag_ = false;
int fn_key_code_ = 0x3F;
MacKeyboardModifierState injected_modifier_state_;
};
} // namespace crossdesk
#endif