Jquery and keyboard in android and IOS

1

I am having difficulty catching which character the user pressed when using smartphone with ANDROID / IPHONE. I use the jquery keyup event, but the answer is always undefined or 229.

Does anyone know how to solve this?

The code I'm using:

$('#campo-valor').on('keyup', function(event) {
   console.log(event.which);
}
    
asked by anonymous 12.04.2017 / 01:19

0 answers