Exemplo n.º 1
0
        public bool AttachWithIME()
        {
            if (IsXAML)
            {
                return(ShowKeyboardInput());
            }
            else
            {
                if (TextFieldInFocus != null)
                {
                    OnKeyboardWillShow();

                    IsVisible = true;

                    OnKeyboardDidShow();

                    AutoRepeat       = TextFieldInFocus.AutoRepeat;
                    keyboardListener = new CCEventListenerKeyboard();
                    keyboardListener.OnKeyPressed  = OnKeyPressed;
                    keyboardListener.OnKeyReleased = OnKeyReleased;

                    TextFieldInFocus.AddEventListener(keyboardListener);

                    return(true);
                }
            }
            return(false);
        }
        public bool AttachWithIME()
        {
            ShowKeyboardInput(ContentText);
            if (true)
            {
                if (TextFieldInFocus != null)
                {
                    AutoRepeat       = TextFieldInFocus.AutoRepeat;
                    keyboardListener = new CCEventListenerKeyboard();
                    keyboardListener.OnKeyPressed  = OnKeyPressed;
                    keyboardListener.OnKeyReleased = OnKeyReleased;

                    TextFieldInFocus.AddEventListener(keyboardListener);
                }
            }
            return(true);
        }