开发者

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)
    });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜