Fix help screen documentation - incorrect key binding for viewing details
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user