Просмотр исходного кода

add focus tracking for tui so cursor will hide when not in focus (#103)

Gal Schlezinger 8 месяцев назад
Родитель
Сommit
fe109c921e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/tui/internal/components/chat/editor.go

+ 1 - 1
packages/tui/internal/components/chat/editor.go

@@ -93,7 +93,7 @@ const (
 )
 
 func (m *editorComponent) Init() tea.Cmd {
-	return tea.Batch(textarea.Blink, m.spinner.Tick)
+	return tea.Batch(textarea.Blink, m.spinner.Tick, tea.EnableReportFocus)
 }
 
 func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {