Here’s my code:
player3Name = ui::EditBox::create(editBoxSize, ui::Scale9Sprite::create("whitebox.png"));
player3Name->setAnchorPoint(Vec2(0, 0));
player3Name->setPosition(Vec2(int_initialplayer3NameX, int_initialplayer3NameY));
player3Name->setFontColor(Color4B::BLACK);
player3Name->setPlaceHolder("Jay");
player3Name->setInputFlag(ui::EditBox::InputFlag::INITIAL_CAPS_WORD);
player3Name->setPlaceholderFontColor(Color4B::BLACK);
player3Name->setMaxLength(12);
player3Name->setText(UserDefault::getInstance()->getStringForKey("player3name").c_str());
player3Name->setDelegate(this);
player3Name->setReturnType(ui::EditBox::KeyboardReturnType::DEFAULT);
The keyboard comes up and let's me edit my label just fine. problem is, when I hit the return button, nothing happens. I've tried changing DEFAULT to DONE and it still doesn't close it. Any ideas?