Skip to content

feat: add mouse click selection support#152

Open
summer-boythink wants to merge 3 commits into
quantumsheep:masterfrom
summer-boythink:feature/mouse-selection
Open

feat: add mouse click selection support#152
summer-boythink wants to merge 3 commits into
quantumsheep:masterfrom
summer-boythink:feature/mouse-selection

Conversation

@summer-boythink
Copy link
Copy Markdown

Summary

  • Add mouse click support to select SSH connection rows in the table
  • Click position correctly accounts for scroll offset when the list is scrolled

Changes

  • Handle MouseEventKind::Down(MouseButton::Left) event to detect clicks on table rows
  • Store table area for click position calculation
  • Update footer help text to indicate mouse support

Usage

  • Click on any row to select it
  • Press enter to connect to the selected host

Comment thread src/ui.rs Outdated
Comment on lines +217 to +218
let header_height = 1u16;
let top_border = 1u16;
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.

Instead of a fixed size, the height and border size should be determined from the respective rect sizes

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you for your reply. In this latest commit of 4c063e6, I have fixed this issue.

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