javascript - Opera's right click disables key events -


in opera, while holding down right click, no key events register.

window.onkeydown = function() {     alert("hey"); } 

this doesn't register if you're holding down right mouse button in opera.

i've disabled context menu, right click still blocks key events.
i've tried disabling mouse gestures in opera (which use right mouse button). there's no context menu nor mouse gestures, key events still don't register while right mouse button down.

here's js fiddle example.
when press key, "a" move right, regardless of whether right mouse button down, unless you're in opera.

are there workarounds/fixes?

it onmousedown work holding down right click below code works me in opera , chrome right click.

<html> <body> <script> window.onkeydown = function() {     alert("hey"); } window.mousedown = function() {     alert("hey mouse down"); } </script> </body> </html> 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -