コード例 #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);
        }
コード例 #2
0
        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);
        }