summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/tui.go b/tui.go
index a2e3ded..df42ea0 100644
--- a/tui.go
+++ b/tui.go
@@ -1,6 +1,7 @@
package main
import (
+ "elefant/extra"
"elefant/models"
"elefant/pngmeta"
"fmt"
@@ -708,6 +709,14 @@ func init() {
return nil
}
}
+ // 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
+ extra.TTSDoneChan <- true
+ }
+ }
if event.Key() == tcell.KeyCtrlW {
// INFO: continue bot/text message
// without new role