mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-09 12:51:45 -04:00
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:
1 parent
0e04a2fe5d
commit
b141439c83
3 files changed
+9
-27
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user