Repository navigation
Arm the page under the target picker as a held Alt does - #1874
Merged
Merged
Conversation
While `s`'s hint map stands, the mouse now works the way it does with Alt held. The target under the pointer wears the aim box as soon as the picker opens, and a press chooses that target, closes the picker and opens Comment, without activating the link or control under it. Before this, a desktop click while the hints stood went straight to the page, so trying to point at a link followed it. Touch already claimed presses; PR #923 had gated the claim to touch only to keep desktop unchanged. One predicate, `armedBy`, now arms both the box and the press claim, so the picker and Alt share the same rules. A press on a margin row, such as a suggestion's Accept, comments on the change the row stands by and no longer accepts it. The banner, including Cancel selection, still works. A press over nothing is swallowed, and the picker stays open. The second press of a double click joins the claimed first press rather than reaching the page. A direct `/` search, which opens no map, does not arm the page. Touch claims presses as before but paints no hover box. The announcement and the command description now say "press" rather than "tap". Behavior changed in tests: the desktop test that pinned plain link clicks passing through the picker now asserts the opposite. A new test holds the margin-row case. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A middle press ends in auxclick rather than click, and a link opens its new tab there, so while the page was armed by Alt or the target picker a middle press on a link still opened it and left the picker standing. The claim now takes auxclick too and acts on nothing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While
s's hint map stands, the mouse now behaves as it does with Alt held. The aim box paints on the element under the pointer as soon as the picker opens, and a press chooses that element, closes the picker and opens Comment without activating the link or control under it. Before this, a desktop click while the hints stood went straight to the page, so pointing at a link followed it. Touch already claimed presses there; #923 gated that claim to touch only to keep desktop unchanged, not as a product decision.One predicate,
armedByinaim.js, now decides both what the box promises and which presses are claimed, for Alt and the picker alike. The only difference between them is the result: under the picker a press chooses and closes it. Consequences:mousedownbut not onpointerdown, so the continuation is recognised there.auxclick), so it no longer opens a link in a new tab while the page is armed, under Alt or the picker./search, which arms no map, doesn't arm the page.Tests: the desktop test that pinned plain link clicks passing through the picker now asserts the opposite: the box paints on open, a middle press opens no tab, and a double click opens Comment without navigating. A new test holds the margin-row case.