【发布时间】:2013-06-06 02:51:39
【问题描述】:
我想简单地为我设置了键盘快捷键的锚链接添加一些 CSS。菜单项。
<a id="about">About The Company</a>
shortcut.add("a",function() {
$("#about").trigger('click');
},{
'disable_in_input':true
});
When the keyboard 'a' is selected, I want to get the "About The Company" anchor to fade into red for a second to give the user feedback that it has been selected.
这是我正在使用的脚本,仅供参考:http://www.openjs.com/scripts/events/keyboard_shortcuts/
【问题讨论】:
标签: javascript jquery keyboard-shortcuts addclass