Enha: stop tts if msg not for user

This commit is contained in:
Grail Finder
2026-02-10 11:25:05 +03:00
parent 875de679cf
commit 46a33baabb
6 changed files with 19 additions and 18 deletions

8
tui.go
View File

@@ -1120,12 +1120,8 @@ func init() {
}
}
// I need keybind for tts to shut up
if event.Key() == tcell.KeyCtrlA {
// textArea.SetText("pressed ctrl+A", true)
if cfg.TTS_ENABLED {
// audioStream.TextChan <- chunk
TTSDoneChan <- true
}
if event.Key() == tcell.KeyCtrlA && cfg.TTS_ENABLED {
TTSDoneChan <- true
}
if event.Key() == tcell.KeyCtrlW {
// INFO: continue bot/text message