maheshchari / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

No way to bind some keys, then bind a default? #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I want to bind some keys to an element, and then bind a wildcard to fire a
function for all the other key-codes.

Is this possible?

If not, please can you add it?

Original issue reported on code.google.com by peter.mo...@gmail.com on 12 Dec 2008 at 5:42

GoogleCodeExporter commented 8 years ago
the following will be handled by the plugin 
$(document).unbind('keydown', 'Ctrl+c', fn);

however if you omit the combination parameter and call 
$(document).unbind('keydown', fn);
your fn will be called for every keydown event

Original comment by Afro.Sys...@gmail.com on 3 May 2009 at 9:00