feat: refactor transcription handling for Linux and non-Linux environments

This commit is contained in:
jahruz67
2026-05-20 15:29:09 -07:00
parent 910877d35e
commit 5ab514abdd
3 changed files with 67 additions and 35 deletions
+18
View File
@@ -0,0 +1,18 @@
//go:build linux
package main
import (
"unicode/utf8"
"wis-free-v3/internal/logger"
"github.com/go-vgo/robotgo"
)
func (a *App) insertTranscription(text string) {
// Avoid synthetic Ctrl+V on Linux; desktop environments can interpret it
// together with lingering shortcut modifiers and open global UI instead.
logger.Info("Typing transcription directly on Linux (%d chars)", utf8.RuneCountInString(text))
robotgo.TypeStr(text)
}