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 hefeng committed Jan 25, 2019
1 parent de58f2a commit 36d8ac0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/compiler/codegen/events.js
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 36d8ac0

Please sign in to comment.