Skip to content

Commit 1bd6196

Browse files
matheusazziyyx990803
authored andcommitted
fix(codegen): support IE11 and Edge use of "Esc" key (#7887)
Closes #7880
1 parent 7a145d8 commit 1bd6196

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/codegen/events.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const keyCodes: { [key: string]: number | Array<number> } = {
1818

1919
// KeyboardEvent.key aliases
2020
const keyNames: { [key: string]: string | Array<string> } = {
21-
esc: 'Escape',
21+
// #7880: IE11 and Edge use `Esc` for Escape key name.
22+
esc: ['Esc', 'Escape'],
2223
tab: 'Tab',
2324
enter: 'Enter',
2425
space: ' ',

0 commit comments

Comments
 (0)