From 015f1089ea875a153dd2a18ef42c25145d4868f5 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 11 Jul 2026 22:28:32 +0800
Subject: [PATCH] freeze(mas): snapshot tested 2.2.3 build 20260711.1807

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

diff --git a/C1.source/privatevoice.src/internal/config/config.go b/C1.source/privatevoice.src/internal/config/config.go
index 25bbffe..4693a58 100755
--- a/C1.source/privatevoice.src/internal/config/config.go
+++ b/C1.source/privatevoice.src/internal/config/config.go
@@ -10,6 +10,7 @@
 )
 
 const (
+	UnsetHotkeyVK            = 0
 	LegacyDefaultHotkeyVK    = 0xA5
 	RightModifierDefaultVK   = 0x5C
 	HotkeyModeTap            = "tap"
@@ -28,6 +29,7 @@
 	SoundFeedback            bool   `json:"SoundFeedback"`
 	HideDockIcon             bool   `json:"HideDockIcon"`
 	CopyToClipboard          bool   `json:"CopyToClipboard"`
+	AutoPasteExperiment      bool   `json:"AutoPasteExperiment"`
 	DeviceName               string `json:"DeviceName,omitempty"`
 	IndicatorX               int    `json:"IndicatorX,omitempty"`
 	IndicatorY               int    `json:"IndicatorY,omitempty"`
@@ -62,6 +64,7 @@
 		SoundFeedback:            true,
 		HideDockIcon:             true,
 		CopyToClipboard:          true,
+		AutoPasteExperiment:      false,
 		SelectedModelID:          model.DefaultModelID,
 		ModelSelectionMode:       ModelSelectionModeAuto,
 		LanguageMode:             LanguageModeAuto,
@@ -72,6 +75,9 @@
 }
 
 func defaultHotkeyVKForNewConfig(goos string) int {
+	if defaultHotkeyUnsetForNewConfig(goos) {
+		return UnsetHotkeyVK
+	}
 	switch goos {
 	case "darwin", "windows":
 		return RightModifierDefaultVK
@@ -80,6 +86,10 @@
 	}
 }
 
+func IsHotkeyUnset(vk int) bool {
+	return vk == UnsetHotkeyVK
+}
+
 func configPath() string {
 	return paths.File("config.json")
 }

--
Gitblit v1.9.3