Skip to content

Commit 77aa3c0

Browse files
taejstaerim-shin
authored andcommitted
Add keyCode attribute to KeyboardEventInit
It's needed to fix cross browsing issue(support IE) Fixed #15228
1 parent bf671e9 commit 77aa3c0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ interface KeyboardEventInit extends EventModifierInit {
649649
code?: string;
650650
isComposing?: boolean;
651651
key?: string;
652+
keyCode?: number;
652653
location?: number;
653654
repeat?: boolean;
654655
}

inputfiles/idl/UI Events.widl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ dictionary KeyboardEventInit : EventModifierInit {
129129
unsigned long location = 0;
130130
boolean repeat = false;
131131
boolean isComposing = false;
132+
unsigned long keyCode = 0;
132133
};
133134

134135
[Constructor(DOMString type, optional CompositionEventInit eventInitDict), Exposed=Window]

0 commit comments

Comments
 (0)