mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-07-14 10:34:33 +08:00
[fix] fix cross-platform key capture and mapping issues
This commit is contained in:
@@ -24,8 +24,8 @@ class KeyboardCapturer : public DeviceController {
|
||||
virtual int SendKeyboardCommand(int key_code, bool is_down);
|
||||
|
||||
private:
|
||||
CFMachPortRef event_tap_;
|
||||
CFRunLoopSourceRef run_loop_source_;
|
||||
CFMachPortRef event_tap_ = nullptr;
|
||||
CFRunLoopSourceRef run_loop_source_ = nullptr;
|
||||
|
||||
public:
|
||||
bool caps_lock_flag_ = false;
|
||||
@@ -36,4 +36,4 @@ class KeyboardCapturer : public DeviceController {
|
||||
int fn_key_code_ = 0x3F;
|
||||
};
|
||||
} // namespace crossdesk
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user