There are many websites that use Ctrl + Enter to submit web forms. But in Opera, since 11.50 build 1018 , this hotkey sends the form to a new background tab.
And Opera Next (12.50) even opens several new background tabs!
Sample code is as follows:
<form method="post" id="form"> <textarea id="text"></textarea><br /><br /> <input type="submit" value="submit" id="submit" /> </form> <script type="text/javascript"> $(document).ready(function(){ $('#text').keypress(function(event){ if (event.ctrlKey && (event.which == 10 || event.which == 13)) { event.preventDefault(); event.stopPropagation(); event.ctrlKey = false; $('#submit').click(); } }); $("#submit").click(function(event){ event.ctrlKey = false; }); }); </script>
Link to http://jsfiddle.net/8pYsv/
How can I avoid this behavior? As an Opera user, not as a website administrator.
Opera does not have a configuration option for Ctrl Click and event.ctrlKey = false; does not work.
Only replacing $("#submit").click() with $("#form").submit() helps.
But there are many sites that will not change their code just for Opera.
Thanks in advance for your help!
Xe-xe source share