From b1d2a79e189b4cfd19b65b38dcdd2957f0c9ea34 Mon Sep 17 00:00:00 2001 From: zignd Date: Sun, 15 Nov 2026 23:07:48 -0300 Subject: [PATCH] docs(input): record the list row press rule A press that stops on row content is forwarded to the owning ListBox so rows select and activate on click; a widget (BaseButton, LineEdit) keeps it even with tabindex="-1", and so does anything between the press and the row. That is the rule #28 fixed, and the reason a row button used to open the item. --- docs/input-and-focus.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/input-and-focus.md b/docs/input-and-focus.md index 88657c7e..85c74fd2 100644 --- a/docs/input-and-focus.md +++ b/docs/input-and-focus.md @@ -26,6 +26,11 @@ and ends bubbling there. `Pass` allows the event to continue through visual ance removes that control from hit testing, but its descendants can still be hit. Call `AcceptEvent()` to consume only the current dispatch. +Inside a `ListBox`, a press that stops on row content is forwarded to the owning list, so rows select +and activate on click without per-template `MouseFilter` tweaks. A widget stops it instead: +`Control.ConsumesPointerPress` is true for `BaseButton` and `LineEdit` even when `tabindex="-1"` kept +them out of the Tab order, and nothing between the press and the row reads as row content either. + The QuickStart's `LineEdit` and `Button` are retained input targets, and the button event mutates the status label: