LearnNewsExamplesServices
Frontmatter
id18800
titlemenu.List docs still describe a submenu rest as pointer-only
stateClosed
labels
bugdocumentationai
assigneesneo-opus-ada
createdAtSep 16, 2026, 3:43 PM
updatedAtSep 16, 2026, 4:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/18800
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 16, 2026, 4:00 PM

menu.List docs still describe a submenu rest as pointer-only

Closed v13.2.0/archive-v13-2-0-chunk-21 bugdocumentationai
neo-opus-ada
neo-opus-ada commented on Sep 16, 2026, 3:43 PM

Context

#18759 / PR #18765 introduced the submenu rest for the pointer, and its docblocks described exactly that. #18780 / PR #18783 then made keyboard focus rest the same way: arrowing onto a parent item starts the same timer, reads the same two configs, and previews the same submenu. The docblocks were not widened with it. @neo-opus-vega noticed cancelRest()'s summary while reviewing #18796 (PRR_kwDODSospM8AAAABN1cAkA). A read of src/menu/List.mjs at 5d375d9722 finds five docblocks with the same gap, two of them public config docs.

The Problem

A consumer reading showSubMenuOnHover learns that a resting pointer shows a submenu. Nothing tells them that arrowing onto a parent previews its submenu too, or that subMenuHoverDelay times both. The protected members describe half of their callers. That is the shape of the #18795 regression: the rest gained a second initiator while its descriptions stayed with the first, so nobody asked what ends a focus rest.

The Architectural Reality

docblock (src/menu/List.mjs at 5d375d9722) says code
showSubMenuOnHover config (:123) shows a submenu "once the pointer rests on it" startRest() (:370) reads it, called from onFocusMove() (:686) and onItemMouseEnter() (:719)
subMenuHoverDelay config (:147) "How long, in ms, the pointer must rest" the same timer for both callers
restTimeoutId member (:185) "a pointer rest still pending" set by startRest() for both
cancelRest() (:354) "Drops the pointer rest still pending" bound to mouseleave (:211), and called by startRest() (:374) and showSubMenu() (:902) for either kind
onItemRest() (:723) "the item the pointer rests on" fired by either rest (:380, :383)

Already accurate: startRest()'s summary (:363) names both inputs, and onItemMouseEnter() (:713) is the pointer path only.

The Fix

Reword the five docblocks so a rest is started by the pointer or by keyboard focus. The two config docs name keyboard focus explicitly, because they are what a consumer reads. Comment lines only.

Acceptance Criteria

  • AC-1 — the five docblocks describe a rest as started by the pointer or keyboard focus; showSubMenuOnHover and subMenuHoverDelay say so in their own text.
  • AC-2 — the diff changes no code lines.

Out of Scope

  • Renaming showSubMenuOnHover or subMenuHoverDelay to input-neutral names: a public config change with its own migration cost.
  • Rest behaviour itself (#18780, #18795 decided it).

Related

#18759 / PR #18765 · #18780 / PR #18783 · #18795 / PR #18796

Live latest-open sweep: checked the latest 20 open issues at 2026-09-16T13:42:24Z; no equivalent. A2A claim sweep: latest 30 inbox messages, all read states; no claim on menu.List docs. Memory Core rationale sweep: query_raw_memories on the symptom; hits are the #18758–#18760 and #18795 lanes, no decision on this wording. Own-assignment sweep: 5 open, none on menu. Structure-map gate: N/A.

Decision Record impact: none.

Origin Session ID: 0f5a0db0-9f3a-402c-bb4a-aa369ff1efa3

tobiu referenced in commit e6196d5 - "docs(menu): a submenu rest is the pointer's or keyboard focus's (#18800) (#18801) on Sep 16, 2026, 4:00 PM
tobiu closed this issue on Sep 16, 2026, 4:00 PM