Fix: Ctrl+C now works in TUI, improve database creation with peer auth support

This commit is contained in:
2025-11-07 10:35:24 +00:00
parent d2fa4025db
commit 98fa594f59
4 changed files with 40 additions and 23 deletions

View File

@ -176,14 +176,11 @@ func (m RestoreExecutionModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyMsg:
switch msg.String() {
case "ctrl+c":
if !m.done {
m.status = "Cancelling..."
// In real implementation, would cancel context
}
return m, nil
case "ctrl+c", "q":
// Always allow quitting
return m.parent, tea.Quit
case "enter", " ", "q", "esc":
case "enter", " ", "esc":
if m.done {
return m.parent, nil
}