chore: disable commands when other dialogs are open
commit232860cb8128d640272dcf278d3454038224581d
authorKujtim Hoxha <kujtimii.h@gmail.com>
dateFri 11 Jul 2025, 18:17 (1 year ago)
parentdfb5080
internal/tui/tui.go+3
@@ -327,6 +327,9 @@ func (a *appModel) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
327327 // If the commands dialog is already open, close it
328328 return util.CmdHandler(dialogs.CloseDialogMsg{})
329329 }
330+ if a.dialog.HasDialogs() {
331+ return nil // Don't open commands dialog if another dialog is active
332+ }
330333 return util.CmdHandler(dialogs.OpenDialogMsg{
331334 Model: commands.NewCommandDialog(a.selectedSessionID),
332335 })