aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/KeyboardEvent.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/KeyboardEvent.webidl')
-rw-r--r--components/script/dom/webidls/KeyboardEvent.webidl5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/webidls/KeyboardEvent.webidl b/components/script/dom/webidls/KeyboardEvent.webidl
index 9426b0da30a..6933a0105ed 100644
--- a/components/script/dom/webidls/KeyboardEvent.webidl
+++ b/components/script/dom/webidls/KeyboardEvent.webidl
@@ -1,14 +1,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* https://w3c.github.io/uievents/#interface-keyboardevent
*
*/
-[Constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict)]
+[Exposed=Window]
interface KeyboardEvent : UIEvent {
+ [Throws] constructor(DOMString typeArg, optional KeyboardEventInit keyboardEventInitDict = {});
// KeyLocationCode
const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
const unsigned long DOM_KEY_LOCATION_LEFT = 0x01;