@@ -372,6 +372,11 @@ func (a *appModel) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
372 return cmd
372 return cmd
375+ if a.dialog.HasDialogs() {
376+ u, dialogCmd := a.dialog.Update(msg)
377+ a.dialog = u.(dialogs.DialogCmp)
377 case key.Matches(msg, a.keyMap.Help):
382 case key.Matches(msg, a.keyMap.Help):
@@ -432,20 +437,14 @@ func (a *appModel) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
433 return tea.Suspend
438 return tea.Suspend
435− if a.dialog.HasDialogs() {
436− u, dialogCmd := a.dialog.Update(msg)
437− a.dialog = u.(dialogs.DialogCmp)
440− item, ok := a.pages[a.currentPage]
440+ item, ok := a.pages[a.currentPage]
441− if !ok {
441+ if !ok {
442− return nil
442+ return nil
445− updated, cmd := item.Update(msg)
446− a.pages[a.currentPage] = updated.(util.Model)
445+ updated, cmd := item.Update(msg)
446+ a.pages[a.currentPage] = updated.(util.Model)