Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 jwerty 插件来处理键盘事件,并创建了一个组合:“alt+a”。
它运行良好,事件触发,但 Windows 叮当!声音来了。这太烦人了。
我该如何预防?
这是链接,自己听:http: //jsfiddle.net/YShy9/3/
发生这种情况是因为没有为 Alt-A 定义访问密钥。一个快速的解决方案是在您的 HTML 中添加类似这样的内容:
<div accesskey="a"></div>
这是一个小提琴。