开发者

Is it possible to change the keypress event in Google Chrome

开发者 https://www.devze.com 2023-03-28 23:57 出处:网络
I have gotten the code to work in IE. However, in Chrome the event does not get changed. Is there a special way of doing this in Chrome, instead of assigning the charCode, keyCode and which variables

I have gotten the code to work in IE. However, in Chrome the event does not get changed. Is there a special way of doing this in Chrome, instead of assigning the charCode, keyCode and which variables to the value that I want?

I have posted my code at http://jsfiddle.net/qjpZN/5/

Any help would be appre开发者_JAVA百科ciated.


Try using keydown event instead. Chrome have a known issue with keypress that maybe fixed in newer versions.

0

精彩评论

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