refactor(input): adopt dispatchCancelable in wheel/keypress/press, trim comments

Route the mouse-wheel, keypress and press paths through the new
EventManager.dispatchCancelable instead of open-coding the acquire-ref /
dispatch / read-defaultPrevented dance three more times. Use
getAttributeInterned for href/tabindex in the focusability helpers to match
their neighbors, and drop WHAT-restating comments.
This commit is contained in:
Adrià Arrufat committed 2026-09-11 10:49:29 +02:00
1 parent 0e04a2fe5d
commit b141439c83
3 files changed
+9 -27

No files matched your search

+1 -2
View File
@@ -1490,8 +1490,7 @@ test "agent script runtime: mousedown focus follows mouse-focusability rules" {
\\expectActive("inp", "setup failed");
\\page.click("#toolbarBtn");
\\expectActive("inp", "preventDefault on mousedown did not protect focus");
\\// Verified against Chrome: a click inside a contenteditable focuses the
\\// host, and a nested host resolves to the outer one.
\\// Verified against Chrome.
\\page.click("#dynHostSpan");
\\expectActive("dynHost", "span inside contenteditable did not focus host");
\\page.click("#dynInnerSpan");