initAndFocusComponents returns a batch of commands that initializes and focuses the active chat page and editor, then resizes everything.
()
| 583 | // initAndFocusComponents returns a batch of commands that initializes and focuses |
| 584 | // the active chat page and editor, then resizes everything. |
| 585 | func (m *appModel) initAndFocusComponents() tea.Cmd { |
| 586 | m.reapplyKeyboardEnhancements() |
| 587 | return tea.Batch( |
| 588 | m.chatPage.Init(), |
| 589 | m.editor.Init(), |
| 590 | m.editor.Focus(), |
| 591 | m.resizeAll(), |
| 592 | ) |
| 593 | } |
| 594 | |
| 595 | func (m *appModel) contextShutdownCmd() tea.Cmd { |
| 596 | return func() tea.Msg { |
no test coverage detected