Skip to content

Arm the page under the target picker as a held Alt does - #1874

Merged
max-sixty merged 3 commits into
mainfrom
s-activates-alt
Oct 6, 2026
Merged

max-sixty merged 3 commits into
mainfrom
s-activates-alt

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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, armedBy in aim.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:

  • A press on a margin row, such as a suggestion's ✓ Accept, comments on the change the row stands by instead of accepting it, as Alt already did. The banner, Cancel selection included, still answers a press.
  • A press over nothing is swallowed and the picker stays open.
  • The second press of a double click joins the claimed first one rather than reaching the page. Chromium counts clicks on mousedown but not on pointerdown, so the continuation is recognised there.
  • A middle press is claimed too (auxclick), so it no longer opens a link in a new tab while the page is armed, under Alt or the picker.
  • A direct / search, which arms no map, doesn't arm the page.
  • On touch, presses are claimed as before, now also over margin rows and seated threads inside the page, matching Alt. No hover box paints, since a finger's last tap is not where it stands.
  • The announcement and the command description say "press" rather than "tap".

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.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits October 5, 2026 18:26
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]>
@max-sixty
max-sixty merged commit bfd2aac into main Oct 6, 2026
4 checks passed
@max-sixty
max-sixty deleted the s-activates-alt branch October 6, 2026 05:29
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