mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-21 20:24:42 +00:00
Keyboard events are bubbling, cancelable and composed
According to the specs: https://w3c.github.io/uievents/#event-type-keyup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user