1
- [Constructor(DOMString type, optional UIEventInit eventInitDict), Exposed=Window]
1
+ [Exposed=Window]
2
2
interface UIEvent : Event {
3
+ constructor(DOMString type, optional UIEventInit eventInitDict);
3
4
readonly attribute Window? view;
4
5
readonly attribute long detail;
5
6
};
@@ -9,17 +10,19 @@ dictionary UIEventInit : EventInit {
9
10
long detail = 0;
10
11
};
11
12
12
- [Constructor(DOMString type, optional FocusEventInit eventInitDict), Exposed=Window]
13
+ [Exposed=Window]
13
14
interface FocusEvent : UIEvent {
15
+ constructor(DOMString type, optional FocusEventInit eventInitDict);
14
16
readonly attribute EventTarget? relatedTarget;
15
17
};
16
18
17
19
dictionary FocusEventInit : UIEventInit {
18
20
EventTarget? relatedTarget = null;
19
21
};
20
22
21
- [Constructor(DOMString type, optional MouseEventInit eventInitDict), Exposed=Window]
23
+ [Exposed=Window]
22
24
interface MouseEvent : UIEvent {
25
+ constructor(DOMString type, optional MouseEventInit eventInitDict);
23
26
readonly attribute long screenX;
24
27
readonly attribute long screenY;
25
28
readonly attribute long clientX;
@@ -67,8 +70,9 @@ dictionary EventModifierInit : UIEventInit {
67
70
boolean modifierSymbolLock = false;
68
71
};
69
72
70
- [Constructor(DOMString type, optional WheelEventInit eventInitDict), Exposed=Window]
73
+ [Exposed=Window]
71
74
interface WheelEvent : MouseEvent {
75
+ constructor(DOMString type, optional WheelEventInit eventInitDict);
72
76
// DeltaModeCode
73
77
const unsigned long DOM_DELTA_PIXEL = 0x00;
74
78
const unsigned long DOM_DELTA_LINE = 0x01;
@@ -87,8 +91,9 @@ dictionary WheelEventInit : MouseEventInit {
87
91
unsigned long deltaMode = 0;
88
92
};
89
93
90
- [Constructor(DOMString type, optional InputEventInit eventInitDict), Exposed=Window]
94
+ [Exposed=Window]
91
95
interface InputEvent : UIEvent {
96
+ constructor(DOMString type, optional InputEventInit eventInitDict);
92
97
readonly attribute DOMString? data;
93
98
readonly attribute boolean isComposing;
94
99
readonly attribute DOMString inputType;
@@ -100,8 +105,9 @@ dictionary InputEventInit : UIEventInit {
100
105
DOMString inputType = "";
101
106
};
102
107
103
- [Constructor(DOMString type, optional KeyboardEventInit eventInitDict), Exposed=Window]
108
+ [Exposed=Window]
104
109
interface KeyboardEvent : UIEvent {
110
+ constructor(DOMString type, optional KeyboardEventInit eventInitDict);
105
111
// KeyLocationCode
106
112
const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
107
113
const unsigned long DOM_KEY_LOCATION_LEFT = 0x01;
@@ -131,8 +137,9 @@ dictionary KeyboardEventInit : EventModifierInit {
131
137
boolean isComposing = false;
132
138
};
133
139
134
- [Constructor(DOMString type, optional CompositionEventInit eventInitDict), Exposed=Window]
140
+ [Exposed=Window]
135
141
interface CompositionEvent : UIEvent {
142
+ constructor(DOMString type, optional CompositionEventInit eventInitDict);
136
143
readonly attribute DOMString data;
137
144
};
138
145
@@ -150,3 +157,9 @@ partial interface KeyboardEvent {
150
157
readonly attribute unsigned long charCode;
151
158
readonly attribute unsigned long keyCode;
152
159
};
160
+
161
+ partial dictionary KeyboardEventInit {
162
+ // The following support legacy user agents
163
+ unsigned long charCode = 0;
164
+ unsigned long keyCode = 0;
165
+ };
0 commit comments