E de Klerk
E de Klerk

Reputation: 7

Dead keys Microsoft typescript

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

Answers (1)

Rob Parsons
Rob Parsons

Reputation: 839

see https://github.com/RobertWHurst/KeyboardJS

tip: use the textInput method for east Asian languages and the MS IME.

Upvotes: -1

Related Questions