I have an anchor with an accesskey assigned. The anchor is used as a button, but it has to be an anchor since the page uses the jQuery UI theme styling.
In Chrome, everything is working fine, I can "click" the button using <alt> + accesskey.
However, in IE, the button is only "selected" when I use <alt> + accesskey. How can I make sure the button is "clicked" immediately (without having to press "enter" afterwards)?
See this fiddle for an example: http://jsfiddle.net/5yu6anpf/
HTML:
<a accesskey="a" href="#">anchor (a)</a>
<button accesskey="b">button (b)</button>
<span id="status">use alt + a/b</span>
Javascript:
$("a, button")
.button()
.click(function() {
$("#status").text($(this).text())
});