cvan / keyboardevent-key-polyfill

polyfill for `KeyboardEvent.prototype.key`
https://cvan.io/keyboardevent-key-polyfill/
Creative Commons Zero v1.0 Universal
47 stars 15 forks source link

Run polyfill on IE/Edge because they have non-standard values #16

Closed eldereal closed 6 years ago

eldereal commented 7 years ago

IE/Edge browsers have some non-standard 'key' values, such as 'ArrowDown', 'ArrowUp' ... events become 'Down', 'Up' ... So I think it's reasonable to polyfill this property on IE/Edge.

Tested on IE9/10/11, Edge 14

cvan commented 6 years ago

sorry for not seeing this. thanks for the contribution!