File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/platform-browser/src/dom/events Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export class KeyEventsPlugin extends EventManagerPlugin {
111
111
} ) ;
112
112
}
113
113
114
- static parseEventName ( eventName : string ) : { fullKey : string , domEventName : string } | null {
114
+ static parseEventName ( eventName : string ) : { [ key : string ] : string } | null {
115
115
const parts : string [ ] = eventName . toLowerCase ( ) . split ( '.' ) ;
116
116
117
117
const domEventName = parts . shift ( ) ;
@@ -136,7 +136,10 @@ export class KeyEventsPlugin extends EventManagerPlugin {
136
136
return null ;
137
137
}
138
138
139
- return { domEventName, fullKey} ;
139
+ const result : { [ k : string ] : string } = { } ;
140
+ result [ 'domEventName' ] = domEventName ;
141
+ result [ 'fullKey' ] = fullKey ;
142
+ return result ;
140
143
}
141
144
142
145
static getEventFullKey ( event : KeyboardEvent ) : string {
You can’t perform that action at this time.
0 commit comments