Skip to content

Commit

Permalink
fix(codegen): support IE11 and Edge use of "Esc" key (vuejs#7887)
Browse files Browse the repository at this point in the history
Closes vuejs#7880
  • Loading branch information
matheusazzi authored and hefeng committed Jan 25, 2019
1 parent c4b8f02 commit 2675fd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/codegen/events.js
Original file line number Diff line number Diff line change
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 2675fd2

Please sign in to comment.