From 4ffa57abab0370b5bd8485a51bb333b369682aea Mon Sep 17 00:00:00 2001 From: Ariver <shanghai3168@gmail.com> Date: Mon, 18 May 2026 16:01:40 +0800 Subject: [PATCH] fix: treat right alt flags as key state --- 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