bool TextFieldTTF::detachWithIME() { bool ret = IMEDelegate::detachWithIME(); if (ret) { // close keyboard GLView * glView = Director::getInstance()->getOpenGLView(); if (glView) { glView->setIMEKeyboardState(false); } } return ret; }
bool TextFieldTTF::attachWithIME() { bool ret = IMEDelegate::attachWithIME(); if (ret) { // open keyboard GLView * pGlView = Director::getInstance()->getOpenGLView(); if (pGlView) { pGlView->setIMEKeyboardState(true); } } return ret; }