JNIEXPORT void JNICALL Java_org_CrossApp_lib_CrossAppTextView_resignFirstResponder(JNIEnv *env, jclass cls, jint key) { CATextView* textView = s_map[(int)key]; if (textView->isFirstResponder()) { textView->resignFirstResponder(); } }
//return call back JNIEXPORT void JNICALL Java_org_CrossApp_lib_CrossAppTextView_keyBoardReturnCallBack(JNIEnv *env, jclass cls, jint key, jint height) { CATextView* textView = s_map[(int)key]; textView->resignFirstResponder(); if (textView->getDelegate()) { textView->getDelegate()->textViewShouldReturn(textView); } }