mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
19 lines
442 B
Go
19 lines
442 B
Go
//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)
|
|
}
|