I still have this issue. Its very strange. The test suite (Event Test) works correctly. I use the same code as there and I don’t get the events. I debugged it down to DOM level and it got stranger. It calls this function in ccInputExtension.js:
It registers both listeners but the callback functions are never called. It seems no problem with cocos, cause this is pure DOM code, but still, it works in the test suite.
I can see the “keydown” and “keyup” event is corretly registered with the canvas, but doesn’t get its callback called. The keyboard events seem to be not propagated to the canvas. Is that possible?
Same PROBLEM! Keyboard events of test suite (Event Test) are not triggered in Chrome with cocos2d-js 3.0beta, but triggered with cocos2d-js 3.0alpha! It’s NOT about key code. This bug is so basic and important function. It is unacceptable that it is appearing in beta version. Does anybody test the code before release?
We are really sorry guys, the problem have been solved after the beta release, so please wait a little while for the next release. Truly sorry for such basic mistakes
Sorry.
This problem has been fixed in the new version.
The canvas object does not get to the keyboard events.
Under normal conditions, canvas is not available keyboard events.