Keyboard won't close with Editbox

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?

Which platform?

Try adding this to see if it helps:

player3Name->setInputMode(ui::EditBox::InputMode::SINGLE_LINE);

That was it. Figured it was something stupid simple like that.

As for the platform, I’m busy updating my ios app from cocos2d v2.0 to 4.0.