Skip to content

This PR adds Enter and q as alternative keys to close the "Hop Detail" dialog in the TUI. - #6

Merged
lance0 merged 1 commit into
lance0:masterfrom
themoog:fix/hop-detail-keys
Jan 18, 2026
Merged

lance0 merged 1 commit into
lance0:masterfrom
themoog:fix/hop-detail-keys

Conversation

@themoog

@themoog themoog commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds Enter and q as alternative keys to close the "Hop Detail" dialog in the TUI.

Motivation

Previously, Esc was the only way to exit this view. This change improves accessibility for users who may have a non-functional Escape key and adds Enter as a convenient toggle (since Enter opens the view).

Changes

  • Modified src/tui/app.rs to handle KeyCode::Enter and KeyCode::Char('q') in the hop detail input loop.
  • Updated the UI hint in src/tui/views/hop.rs to display [Esc/Enter/q] back.

Verification

  • Verified that pressing Enter closes the dialog.
  • Verified that pressing q closes the dialog.
  • Verified that Esc still works as expected.

@lance0 lance0 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - clean UX improvement. Good accessibility consideration for users with non-functional Escape keys, and the Enter toggle symmetry makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants