Skip to content

docs: the public YieldsToMenu description leaves out the NotInText shadowing and the Linux unmodified-key rule #773

Closed

Description

@houko

Context

The public description of YieldsToMenu in docs/public/en/services.md:208 and docs/public/zh/services.md:208 (on main at d1a59a1) says only that the binding leaves its key to "an enabled menu item taking the same shortcut where the focus is (a MenuNotEditing item leaves the binding available in text fields and web views)".

Since #710 the rule (driver.MenuShortcut, internal/driver/keys.go:142-149, and docs/architecture/services.md:447) has two more parts that change when a binding fires:

  • While a text input or web view has the focus, a MenuNotEditing item also keeps its shortcut from later items with the same shortcut, so the binding runs rather than a later item.
  • On Linux, while a text input or web view has the focus, the menu takes no key pressed without Control, Alt or a logo key, so a YieldsToMenu binding of such a key (F5, for example) keeps it.

Why it matters

An app author reading the public docs cannot tell why an F5 binding fires in a field on Linux but not on Windows, or why a second Refresh item never runs while typing.

Proposal

Extend the parenthetical in both languages with those two points, in the page's existing style, e.g. "(a MenuNotEditing item leaves the binding, and not a later item with the same shortcut, the key in text fields and web views, as Linux leaves it every key pressed without Control, Alt or a logo key)".

Acceptance

  • docs/public/en/services.md and docs/public/zh/services.md describe both cases and agree with docs/architecture/services.md:447.

Activity

  1. self-assigned this
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions