Ejemplo n.º 1
0
 void OnKeyboardDidShow(object sender, CCIMEKeyboardNotificationInfo e)
 {
     if (!action)
     {
         textFieldActionState = textField.RepeatForever(textFieldAction);
         action = true;
     }
 }
Ejemplo n.º 2
0
 void OnKeyboardDidHide(object sender, CCIMEKeyboardNotificationInfo e)
 {
     if (action)
     {
         textField.StopAction(textFieldActionState);
         textField.Opacity = 255;
         action            = false;
     }
 }
Ejemplo n.º 3
0
 void OnKeyboardDidShow(object sender, CCIMEKeyboardNotificationInfo e)
 {
     CCLog.Log("Keyboard did show");
     if (!action)
     {
         textFieldActionState = TrackNode.RepeatForever(textFieldAction);
         action = true;
     }
 }
Ejemplo n.º 4
0
        void OnKeyboardDidHide(object sender, CCIMEKeyboardNotificationInfo e)
        {
            CCLog.Log("Keyboard did hide");
            if (action)
            {
                TrackNode.StopAction(textFieldActionState);
                // Make sure we are in a visible state after the action ends.
                TrackNode.Visible = true;

                action = false;
            }
        }
Ejemplo n.º 5
0
        void OnKeyboardDidHide(object sender, CCIMEKeyboardNotificationInfo e)
        {
            if (TextFieldIMEImplementation != null)
            {
                TextFieldIMEImplementation.DeleteBackward -= TextFieldIMEImplementation_DeleteBackward;
                TextFieldIMEImplementation.InsertText -= TextFieldIMEImplementation_InsertText;
                TextFieldIMEImplementation.ReplaceText -= TextFieldIMEImplementation_ReplaceText;
                TextFieldIMEImplementation.KeyboardDidHide -= OnKeyboardDidHide;

                var newText = Text;

                //if (newText != null && Text != newText)
                //{

                    bool canceled = false;

                    ScheduleOnce(
                        time =>
                        {
                            DoEndEditing(ref newText, ref canceled);

                            if (!canceled)
                            {
                                Text = newText;
                            }
                        },
                        0
                    );
//                }
            }
        }
Ejemplo n.º 6
0
 void OnKeyboardDidHide(object sender, CCIMEKeyboardNotificationInfo e)
 {
     CCLog.Log("Keyboard did hide");
 }
Ejemplo n.º 7
0
 void OnKeyboardDidShow(object sender, CCIMEKeyboardNotificationInfo e)
 {
     CCLog.Log("Keyboard did show");
 }
Ejemplo n.º 8
0
 void OnKeyboardWillHide(object sender, CCIMEKeyboardNotificationInfo e)
 {
     CCLog.Log("Keyboard will Hide");
 }
Ejemplo n.º 9
0
 void OnKeyboardWillShow(object sender, CCIMEKeyboardNotificationInfo e)
 {
     CCLog.Log("Keyboard will show");
 }