diff --git a/src/compiler/codegen/events.js b/src/compiler/codegen/events.js index 4f9222466ad..c2a73a7f10b 100644 --- a/src/compiler/codegen/events.js +++ b/src/compiler/codegen/events.js @@ -18,7 +18,8 @@ const keyCodes: { [key: string]: number | Array } = { // KeyboardEvent.key aliases const keyNames: { [key: string]: string | Array } = { - esc: 'Escape', + // #7880: IE11 and Edge use `Esc` for Escape key name. + esc: ['Esc', 'Escape'], tab: 'Tab', enter: 'Enter', space: ' ',