Fix help screen documentation - incorrect key binding for viewing details

This commit is contained in:
Calmcacil
2026-01-12 23:00:16 +01:00
parent 153c001483
commit 707464e61e
6 changed files with 118 additions and 24 deletions

View File

@@ -113,7 +113,7 @@ func (s *DetailScreen) Update(msg tea.Msg) (Screen, tea.Cmd) {
s.transferTx = msg.transferTx
case tea.KeyMsg:
switch msg.String() {
case "b", "esc":
case "q", "b", "esc":
// Return to list screen - signal parent to switch screens
return nil, nil
case "d":
@@ -174,9 +174,9 @@ func (s *DetailScreen) View() string {
func (s *DetailScreen) renderContent() string {
statusText := s.status
if s.status == wireguard.StatusConnected {
statusText = detailConnectedStyle.Render(s.status)
statusText = detailConnectedStyle.Render("● " + s.status)
} else {
statusText = detailDisconnectedStyle.Render(s.status)
statusText = detailDisconnectedStyle.Render("● " + s.status)
}
// Build content
@@ -205,7 +205,7 @@ func (s *DetailScreen) renderContent() string {
)
// Add help text
helpText := detailHelpStyle.Render("Actions: [d] Delete • [c] View Config • [b] Back")
helpText := detailHelpStyle.Render("Actions: [d] Delete • [c] View Config • [q/b] Back")
content = lipgloss.JoinVertical(lipgloss.Left, content, helpText)
return content