开发者

document.createEvent("KeyboardEvent") - get keycode for manually created event

开发者 https://www.devze.com 2023-03-11 01:01 出处:网络
I开发者_如何学编程 am using the custom input event found @ http://whattheheadsaid.com/projects/input-special-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

精彩评论

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