mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-21 20:24:42 +00:00
Merge pull request #1898 from lightpanda-io/keyboard-event-bubble
Keyboard events are bubbling, cancelable and composed
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user