liftoff / HumanInput

A JavaScript library for handling keyboard shortcuts and other human-generated events
Apache License 2.0
583 stars 25 forks source link

Dead keys are not detected in spanish keyboard #15

Closed Canx closed 6 years ago

Canx commented 7 years ago

Hi,

I'm struggling to detect accented characters (áéíóú or àèìòù) that are made using a sequence of a dead key (accent / grave accent) and a vocal.

I use HI.on("´ a") or HI.on("` a") with no luck.

Any hints?

liftoff commented 6 years ago

For this you'll want to use the literal character:

HI.on("á");

If you open up your browser's developer console you can run HI.log.setLevel("DEBUG") and then select your web page and press one of those keys. It should display what it was detected as and you can copy & paste that string for use with HumanInput.

liftoff commented 6 years ago

Closing due to inactivity (pretty sure I answered the question anyway).