on main help sign in
chore: disable commands when other dialogs are open
232860cKujtim Hoxha
internal/tui/tui.go+3
@@ -327,6 +327,9 @@ func (a *appModel) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
327 // If the commands dialog is already open, close it
327 // If the commands dialog is already open, close it
328 return util.CmdHandler(dialogs.CloseDialogMsg{})
328 return util.CmdHandler(dialogs.CloseDialogMsg{})
329 }
329 }
330+ if a.dialog.HasDialogs() {
331+ return nil // Don't open commands dialog if another dialog is active
332+ }
330 return util.CmdHandler(dialogs.OpenDialogMsg{
333 return util.CmdHandler(dialogs.OpenDialogMsg{
331 Model: commands.NewCommandDialog(a.selectedSessionID),
334 Model: commands.NewCommandDialog(a.selectedSessionID),
332 })
335 })