PDA

View Full Version : [4.0.1]Keypress Event dosn't fire in Chrome



mediacept
25 May 2011, 7:35 AM
Hi,
This function fires in Opera and in Firefox but not in Chrome.


function(c){
c.getEl().on('keypress', function(e) {
if(e.getKey() == e.ENTER ) {
....do something
}
},
c);
}
It seems that it's a Chrome bug : http://code.google.com/p/chromium/issues/detail?id=2606

Just use keydown instead of keypress and it works.