From 47e0419e81ee015b469cc9f2a891cad8fa505eec Mon Sep 17 00:00:00 2001 From: Ariver <shanghai3168@gmail.com> Date: Mon, 18 May 2026 17:54:50 +0800 Subject: [PATCH] build: apply selected macOS app icon --- VoiceSnapGo/internal/hotkey/hotkey_darwin.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/VoiceSnapGo/internal/hotkey/hotkey_darwin.go b/VoiceSnapGo/internal/hotkey/hotkey_darwin.go index 710e9d6..1ddda60 100755 --- a/VoiceSnapGo/internal/hotkey/hotkey_darwin.go +++ b/VoiceSnapGo/internal/hotkey/hotkey_darwin.go @@ -76,7 +76,8 @@ if (mask == 0) return; BOOL physicalDown = CGEventSourceKeyState(kCGEventSourceStateHIDSystemState, (CGKeyCode)keyCode); - handleKeyEvent(keyCode, physicalDown ? YES : NO); + BOOL eventDown = (flags & mask) ? YES : NO; + handleKeyEvent(keyCode, (physicalDown || eventDown) ? YES : NO); recordAltEvent(keyCode, 3, flags); } -- Gitblit v1.9.3