Keyboard events are bubbling, cancelable and composed

According to the specs: https://w3c.github.io/uievents/#event-type-keyup
This commit is contained in:
Pierre Tachoire
2026-03-18 10:37:27 +01:00
parent bd2406f803
commit ba71268eb3

View File

@@ -219,6 +219,13 @@ fn initWithTrusted(arena: Allocator, typ: String, _opts: ?Options, trusted: bool
); );
Event.populatePrototypes(event, opts, trusted); 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; return event;
} }