Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery keyup keyCode doesn't work in Opera

Is it possible that the opera browser ignore the keyCode 40 (arrow down)?

 $('#test').keyup(function(e) {
        $('body').append('' + e.keyCode + '');
 })

Test it at: http://www.jsfiddle.net/V9Euk/454/

Thanks in advance!
Peter

like image 563
Peter Avatar asked Jun 12 '26 19:06

Peter


1 Answers

Try to use the autocomplete attribute, and set it to off:

<input id="test" value="" autocomplete="off" >

Opera uses the arrow down key for auto completion, and may therefore suppress the forwarding of the event.

Working test: http://www.jsfiddle.net/V9Euk/455/

like image 148
Giuseppe Accaputo Avatar answered Jun 15 '26 12:06

Giuseppe Accaputo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!