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

add support for option-modified keys on Mac OS #13

Open pascalpp opened 7 years ago

pascalpp commented 7 years ago

Many characters can only be typed by using the option key as a modifier. For example, pressing option-F on a Mac results in ƒ. Chrome and Firefox correctly report ƒ as the value for event.key in this case. But the polyfill reports the value as the unmodified key f. Would be nice if this polyfill handled those as well.