Exemple #1
0
        void _openInputConnection()
        {
            if (!this._hasInputConnection)
            {
                TextEditingValue localValue = this._value;
                this._lastKnownRemoteTextEditingValue = localValue;
                this._textInputConnection             = Window.instance.textInput.attach(this, new TextInputConfiguration(
                                                                                             inputType: this.widget.keyboardType,
                                                                                             obscureText: this.widget.obscureText,
                                                                                             autocorrect: this.widget.autocorrect,
                                                                                             inputAction: this.widget.textInputAction ?? ((this.widget.keyboardType == TextInputType.multiline)
                                     ? TextInputAction.newline
                                     : TextInputAction.done)
                                                                                             ));
                this._textInputConnection.setEditingState(localValue);
            }

            this._textInputConnection.show();
        }
Exemple #2
0
        void _openInputConnection()
        {
            if (!this._hasInputConnection)
            {
                TextEditingValue localValue = this._value;
                this._lastKnownRemoteTextEditingValue = localValue;
                this._textInputConnection             = TextInput.attach(this, new TextInputConfiguration(
                                                                             inputType: this.widget.keyboardType,
                                                                             obscureText: this.widget.obscureText,
                                                                             autocorrect: this.widget.autocorrect,
                                                                             inputAction: this.widget.textInputAction ?? ((this.widget.keyboardType == TextInputType.multiline)
                                     ? TextInputAction.newline
                                     : TextInputAction.done),
                                                                             textCapitalization: this.widget.textCapitalization,
                                                                             unityTouchKeyboard: this.widget.unityTouchKeyboard

                                                                             ));
                this._textInputConnection.setEditingState(localValue);
                this._updateImePosIfNeed();
            }

            this._textInputConnection.show();
        }