请看下面的代码:
$('div').click(function(){
alert("Shortcut worked although element was hidden!");
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div hidden accesskey="1">
Some things...
</div>
<p>
Focus on me and then
</br>
<b>press [Alt + 1] please!</b>
</p>
accesskey
当元素隐藏时如何禁用?