JQuery keyup keyCode not working in Opera

Is Opera possible to ignore keyCode 40 (down arrow)?

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

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

Thanks in advance! Peter

+3
source share
2 answers

Try using the attribute autocompleteand set it to off:

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

Opera uses the down arrow key to end automatically, and therefore may prevent the event from being forwarded.

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

+7
source

, (, ). www.w3.org, , (keyup ).

+1

Source: https://habr.com/ru/post/1762798/


All Articles