Пример #1
0
	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();
        }
    }
Пример #2
0
 //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);
     }
 }