From 7ed43baaa6be88a55952a3411575922c8d883a08 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Mon, 06 Jul 2026 15:47:42 +0800
Subject: [PATCH] feat: default right modifier hotkey

---
 C1.source/privatevoice.src/internal/hotkey/hotkey.go |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/C1.source/privatevoice.src/internal/hotkey/hotkey.go b/C1.source/privatevoice.src/internal/hotkey/hotkey.go
index 32f6269..a3d187c 100755
--- a/C1.source/privatevoice.src/internal/hotkey/hotkey.go
+++ b/C1.source/privatevoice.src/internal/hotkey/hotkey.go
@@ -2,6 +2,7 @@
 
 import (
 	"fmt"
+	"runtime"
 	"time"
 )
 
@@ -24,6 +25,10 @@
 
 // GetKeyName returns the display name for a virtual key code.
 func GetKeyName(vk int) string {
+	return GetKeyNameForPlatform(vk, runtime.GOOS)
+}
+
+func GetKeyNameForPlatform(vk int, goos string) string {
 	switch vk {
 	case 0x11:
 		return "Ctrl"
@@ -52,8 +57,14 @@
 	case 0x0D:
 		return "Enter"
 	case 0x5B:
+		if goos == "darwin" {
+			return "L-⌘"
+		}
 		return "L-Win"
 	case 0x5C:
+		if goos == "darwin" {
+			return "R-⌘"
+		}
 		return "R-Win"
 	case 0x1B:
 		return "Esc"

--
Gitblit v1.9.3