event isTrusted support and better composedPath for shadowroots

This commit is contained in:
Karl Seguin
2025-12-26 08:45:20 +08:00
parent b379b775f9
commit 25dbac9945
32 changed files with 357 additions and 60 deletions

View File

@@ -60,7 +60,7 @@ fn dispatchKeyEvent(cmd: anytype) !void {
const page = bc.session.currentPage() orelse return;
const KeyboardEvent = @import("../../browser/webapi/event/KeyboardEvent.zig");
const keyboard_event = try KeyboardEvent.init("keydown", .{
const keyboard_event = try KeyboardEvent.initTrusted("keydown", .{
.key = params.key,
.code = params.code,
.altKey = params.modifiers & 1 == 1,