Merge pull request #1898 from lightpanda-io/keyboard-event-bubble

Keyboard events are bubbling, cancelable and composed
This commit is contained in:
Pierre Tachoire
2026-03-18 16:26:15 +01:00
committed by GitHub

View File

@@ -219,6 +219,13 @@ fn initWithTrusted(arena: Allocator, typ: String, _opts: ?Options, trusted: bool
);
Event.populatePrototypes(event, opts, trusted);
// https://w3c.github.io/uievents/#event-type-keyup
const rootevt = event._proto._proto;
rootevt._bubbles = true;
rootevt._cancelable = true;
rootevt._composed = true;
return event;
}