How to set a String by CCTextField with Android Virtual Keyboard?

Hello, Im a beginner developer in Korea. I need an answer about virtual keyboard input.

Below is my game prototype.

What I want to know is how to set the Text of CCLabelTTF that is labeled as ‘Entered’ after type into the CCTextFieldTTF that is labeled as ‘text input’ and press Enter key on my virtual keyboard.

My keyboard just disappears when I press the Enter and nothing happens. I just have no idea which callback methods have to be set(override) and called to run:

label->setString( textField->getString() );

I’ve googled this over 5 hours but no one had questioned about this.


Screenshot.png (217.3 KB)