首页 > 代码库 > cocos2dx3.2输入框window下删除键无效

cocos2dx3.2输入框window下删除键无效

window下 测试TextField没有删除键是不是很不爽~~~~~~~

只要在CCGLView.cpp中的onGLFWKeyCallback (643行)添加如下代码就可以了

		if (g_keyCodeMap[key] == EventKeyboard::KeyCode::KEY_BACKSPACE && GLFW_PRESS == action) {
			IMEDispatcher::sharedDispatcher()->dispatchDeleteBackward();
		}


cocos2dx3.2输入框window下删除键无效