Revert "refactor(platform-browser): specify return type of parseEventName (#38089)"
This reverts commit 174aac68f7cfb9760430c42a4f53b91f8a48c738.
This commit is contained in:
parent
b0ecee8155
commit
38fb735551
@ -111,7 +111,7 @@ export class KeyEventsPlugin extends EventManagerPlugin {
|
||||
});
|
||||
}
|
||||
|
||||
static parseEventName(eventName: string): {fullKey: string, domEventName: string}|null {
|
||||
static parseEventName(eventName: string): {[key: string]: string}|null {
|
||||
const parts: string[] = eventName.toLowerCase().split('.');
|
||||
|
||||
const domEventName = parts.shift();
|
||||
@ -136,7 +136,10 @@ export class KeyEventsPlugin extends EventManagerPlugin {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {domEventName, fullKey};
|
||||
const result: {[k: string]: string} = {};
|
||||
result['domEventName'] = domEventName;
|
||||
result['fullKey'] = fullKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
static getEventFullKey(event: KeyboardEvent): string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user