Skip to content

Commit

Permalink
fix(codegen): support IE11 and Edge use of "Esc" key (#7887)
Browse files Browse the repository at this point in the history
Closes #7880
  • Loading branch information
matheusazzi authored and yyx990803 committed Mar 23, 2018
1 parent 7a145d8 commit 1bd6196
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/codegen/events.js
Expand Up @@ -18,7 +18,8 @@ const keyCodes: { [key: string]: number | Array<number> } = {

// KeyboardEvent.key aliases
const keyNames: { [key: string]: string | Array<string> } = {
esc: 'Escape',
// #7880: IE11 and Edge use `Esc` for Escape key name.
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: ' ',
Expand Down

0 comments on commit 1bd6196

Please sign in to comment.