3.0 TextField cann't delete text


#1

I use cocos2d-x-3.0beta, and I found that TextField has some problems. One of them is I cann’t delete the words I inputted. On Windows, after I modified something on CCEGLView.cpp, it’s OK now. But on Android, it’s still not OK. When I press the delete key, nothing happen.

Anyone konw how to fix this problem? Please give me some help. Thx!


#2

in function GLView::onGLFWKeyCallback() add code:
if(GLFW_PRESS == action)
{
if(g_keyCodeMap[key] == EventKeyboard::KeyCode::KEY_BACKSPACE)
{
IMEDispatcher::sharedDispatcher()->dispatchDeleteBackward();
}
}

is ok l.


#3

It has not resolved in 3.2-alpha0