You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: the public YieldsToMenu description leaves out the NotInText shadowing and the Linux unmodified-key rule #773
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