Skip to content

Open links on modifier-click, including in mouse mode - #1869

Merged
raphamorim merged 3 commits into
mainfrom
hint-click-latch
Aug 12, 2026
Merged

Open links on modifier-click, including in mouse mode#1869
raphamorim merged 3 commits into
mainfrom
hint-click-latch

Conversation

@raphamorim

Copy link
Copy Markdown
Owner

Supersedes and closes #1863 by @aymanbagabas, keeping their commits. The diagnosis and fixes there stand as reviewed: the ModifiersChanged recompute, the mouse-mode bypass for hint clicks, the dead trigger_hyperlink removal, and the centralized cursor icon are all verified against the paths they describe.

One addition on top. The bypass decision was evaluated independently at press and at release, and the hint modifier can change between the two: press without cmd (reported to the application), cmd pressed mid-hold over a link, release swallowed, and the application is left holding a press with no release. The reverse leaks a release without a press. The press handler now latches its decision on the mouse state and the release consumes the latch, so both halves of a click always take the same path. A stale latch cannot survive: the next left press overwrites it.

Testing: cargo test -p rioterm (183 passed), clippy clean. Same caveat as the original PR: this is window event wiring, so the behavior wants a real-window click test, including the mid-click modifier case (press, then press cmd over a link, then release) against an application in mouse mode.

#1864 stacks on the original branch; once this lands it rebases to just the pill commit.

@raphamorim
raphamorim merged commit a7562aa into main Aug 12, 2026
4 checks passed
@raphamorim
raphamorim deleted the hint-click-latch branch August 12, 2026 22:04
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