Skip to content

Commit

Permalink
fix: fix keyName checking for arrow keys in IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored and aJean committed Aug 19, 2020
1 parent 54a22ae commit 0b56c5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/compiler/codegen/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ const keyNames: { [key: string]: string | Array<string> } = {
tab: 'Tab',
enter: 'Enter',
space: ' ',
up: 'ArrowUp',
left: 'ArrowLeft',
right: 'ArrowRight',
down: 'ArrowDown',
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
up: ['Up', 'ArrowUp'],
left: ['Left', 'ArrowLeft'],
right: ['Right', 'ArrowRight'],
down: ['Down', 'ArrowDown'],
'delete': ['Backspace', 'Delete']
}

Expand Down

0 comments on commit 0b56c5a

Please sign in to comment.