Правки кода, завершение настройки после финальной секции

This commit is contained in:
XeRo 2026-02-02 17:56:36 +05:00
parent d3fd4f5858
commit cb44386061
7 changed files with 38 additions and 10 deletions

View file

@ -50,6 +50,10 @@ func (m *FinalModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case key.Matches(msg, types.MainKeys.Bottom):
//Обработчик клавиши перехода на самый верх
m.viewport.GotoBottom()
case key.Matches(msg, types.MainKeys.Confirm):
return m, func() tea.Msg {
return types.NextSectionMsg{}
}
}
case tea.WindowSizeMsg:
//Отслеживаем и записываем новые размер окна, вносим изменения в размеры viewport