mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
event isTrusted support and better composedPath for shadowroots
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user