Skip to content

Commit ea31950

Browse files
committed
fix: correct key binding handling and update quit message in scoreboard TUI
**Changed:** - Fixed key binding handling by replacing "ctrl-c" with "ctrl+c" in the key event switch to match the correct input string - Updated the on-screen instructions from "q/ctrl-c quit · r poll now" to "q/ctrl-c quit · r reload" for clarity in the scoreboard TUI
1 parent 07818f2 commit ea31950

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/internal/scoreboard/tui.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
148148
m.height = msg.Height
149149
case tea.KeyMsg:
150150
switch msg.String() {
151-
case "q", "ctrl-c", "esc":
151+
case "q", "ctrl+c", "esc":
152152
m.quitting = true
153153
return m, tea.Quit
154154
case "r":
@@ -241,7 +241,7 @@ func renderBoard(status *StatusReport, ak *AnswerKey, agentID string, startTime
241241
}
242242
if poll != nil {
243243
parts = append(parts, "", renderPollFooter(poll))
244-
parts = append(parts, styleFaint.Render(" q/ctrl-c quit · r poll now"))
244+
parts = append(parts, styleFaint.Render(" q/ctrl-c quit · r reload"))
245245
}
246246

247247
return panelWithTitle("DreadGOAD STATUS BOARD", strings.Join(parts, "\n"), width)

0 commit comments

Comments
 (0)