jquery.hotkeys (https://github.com/jeresig/jquery.hotkeys) not working with live event?
Hello,
normally one would .bind() all keydown mappings, but i need some .live() keydown mappings.
Does .live() support special handlers like this (in jquery.hotkeys.js)?
jQuery.each([ "keydown", "keyup", "keypress" ], function() {
jQuery.event.special[ this ] = { add: keyHandler };
});
In my case i try to setup the live event as follows:
- $(":input").live('keydown', 'esc', function(){ $(this).blur(); return false; });
That doesn't get triggered at all.
Sorry for editing this entry multiple times. Took me a while to get the problem right.