Skip to content

Find, verify, and analyze leaked credentials

Do not quit TUI, if 'q' is pressed on specific pages (#4356)

Kashif Khan9df896bc25e4
diff --git a/pkg/tui/tui.go b/pkg/tui/tui.go
index 9e833bffc..0faffaf35 100644
--- a/pkg/tui/tui.go
+++ b/pkg/tui/tui.go
@@ -142,7 +142,9 @@ func (ui *TUI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyMsg:
switch {
case key.Matches(msg, ui.common.KeyMap.Help):
- case key.Matches(msg, ui.common.KeyMap.CmdQuit) && ui.activePage() != sourceConfigurePage:
+ case key.Matches(msg, ui.common.KeyMap.CmdQuit) &&
+ (ui.activePage() == wizardIntroPage || ui.activePage() == analyzeKeysPage || ui.activePage() == sourceSelectPage):
+
ui.args = nil
return ui, tea.Quit
case key.Matches(msg, ui.common.KeyMap.Quit):