Hello All
I added shortcut key on my control using jquery.
$(function() {
shortcut.add("ctrl+r", function() { SomeFunctionHere(); });
});
how can i find that this key already added in my control?
Hello All
I added shortcut key on my control using jquery.
$(function() {
shortcut.add("ctrl+r", function() { SomeFunctionHere(); });
});
how can i find that this key already added in my control?
Like this:
if ('ctrl+r' in shortcut.all_shortcuts) {
//Shortcut exists
}
As far as I know, shortcut.add() is not a jQuery library function.. what are you doing? Try this: http://code.google.com/p/js-hotkeys/