Reputation: 7
I made a virtual keyboard in typescript that prints the event.key in the inputfield. It has to be compatible with different input method languages, like Dutch and French. These keyboards have Dead keys, for example the `.
Now this works fine for Chrome and Firefox but for Microsoft (Edge and Internet Explorer) it won't work.
I think this is because in Chrome the event.key is 'Dead' and it functions accordingly. In Edge and IE the event.key is 'Unidentified' so it doesn't print the dead key when paired with spacebar.
Upvotes: -1
Views: 133
Reputation: 839
see https://github.com/RobertWHurst/KeyboardJS
tip: use the textInput method for east Asian languages and the MS IME.
Upvotes: -1