Drop support for keyevents in Document::createEvent

This commit is contained in:
Tetsuharu OHZEKI 2016-04-21 10:48:11 +09:00
parent 75d99eec0f
commit b4cf3b802e
2 changed files with 1 additions and 6 deletions

View file

@ -2156,7 +2156,7 @@ impl DocumentMethods for Document {
Ok(Root::upcast(CustomEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
"htmlevents" | "events" | "event" =>
Ok(Event::new_uninitialized(GlobalRef::Window(&self.window))),
"keyboardevent" | "keyevents" =>
"keyboardevent" =>
Ok(Root::upcast(KeyboardEvent::new_uninitialized(&self.window))),
"messageevent" =>
Ok(Root::upcast(MessageEvent::new_uninitialized(GlobalRef::Window(&self.window)))),