How to detect keypress inside EditBox?

How to detect keypress inside EditBox?
0.0 0

#1

I have this code that works great “outside” the Editbox

cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyDown, this)

But his doesn’t work when cursor is inside textbox.

Just to clarify, I need this for WEB platform.

What Im trying to achieve is: I need to detect when tab is pressed and focus the next editbox (its the screen to create a character so there are a few textbox).

Any tips/suggestions on how to proceed?