我试图简单地为我有键盘快捷键设置的锚链接添加一些 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.
这是我正在使用的脚本 fyi:http ://www.openjs.com/scripts/events/keyboard_shortcuts/