window下 测试TextField没有删除键是不是很不爽~~~~~~~
只要在CCGLView.cpp中的onGLFWKeyCallback (643行)添加如下代码就可以了
if (g_keyCodeMap[key] == EventKeyboard::KeyCode::KEY_BACKSPACE && GLFW_PRESS == action) { IMEDispatcher::sharedDispatcher()->dispatchDeleteBackward(); }
原文地址:http://blog.csdn.net/lumingyuan25/article/details/39933083