mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
moebius#123: DOM - Events - support createEvent("FocusEvent")
https://github.com/MoonchildProductions/moebius/pull/123
This commit is contained in:
parent
61ce67c968
commit
f0c237ae6d
3 changed files with 5 additions and 28 deletions
|
|
@ -1056,6 +1056,11 @@ EventDispatcher::CreateEvent(EventTarget* aOwner,
|
|||
LOG_EVENT_CREATION(STORAGEEVENT);
|
||||
return NS_NewDOMStorageEvent(aOwner);
|
||||
}
|
||||
if (aEventType.LowerCaseEqualsLiteral("focusevent")) {
|
||||
RefPtr<Event> event = NS_NewDOMFocusEvent(aOwner, aPresContext, nullptr);
|
||||
event->MarkUninitialized();
|
||||
return event.forget();
|
||||
}
|
||||
|
||||
#undef LOG_EVENT_CREATION
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue