document.createEvent("KeyboardEvent") - get keycode for manually created event
I开发者_如何学编程 am using the custom input event found @ http://whattheheadsaid.com/projects/input-special-event..
The trouble is that I am not able to get the keycode for the event. Any ideas?
Found the cure..
in the end, I updated the following lines;-
else if (onprop)
$(this).bind("onpropertychange", handler);
to;-
else if (onprop)
$(this).bind("keypress", function(e){
handler.call(this, e)
});
精彩评论