예제 #1
0
        void _handleLongPress()
        {
            bool tooltipCreated = this.ensureTooltipVisible();

            if (tooltipCreated)
            {
                Feedback.forLongPress(this.context);
            }
        }
예제 #2
0
 protected override void onSingleLongTapStart(LongPressStartDetails details)
 {
     if (_delegate.selectionEnabled)
     {
         //use android by default
         renderEditable.selectWord(cause: SelectionChangedCause.longPress);
         Feedback.forLongPress(_state.context);
     }
 }
예제 #3
0
        void _handleLongPress()
        {
            _longPressActivated = true;
            bool tooltipCreated = ensureTooltipVisible();

            if (tooltipCreated)
            {
                Feedback.forLongPress(context);
            }
        }
예제 #4
0
        void _handleSingleLongTapStart(LongPressStartDetails details)
        {
            if (this.widget.selectionEnabled)
            {
                switch (Theme.of(this.context).platform)
                {
                case RuntimePlatform.IPhonePlayer:
                    this._renderEditable.selectPositionAt(
                        from: details.globalPosition,
                        cause: SelectionChangedCause.longPress
                        );
                    break;

                case RuntimePlatform.Android:
                    this._renderEditable.selectWord(cause: SelectionChangedCause.longPress);
                    Feedback.forLongPress(this.context);
                    break;
                }
            }
            this._confirmCurrentSplash();
        }
예제 #5
0
        protected override void onSingleLongTapStart(LongPressStartDetails details)
        {
            if (_delegate.selectionEnabled)
            {
                switch (Theme.of(_state.context).platform)
                {
                case RuntimePlatform.IPhonePlayer:
                case RuntimePlatform.OSXEditor:
                case RuntimePlatform.OSXPlayer:
                    renderEditable.selectPositionAt(
                        from: details.globalPosition,
                        cause: SelectionChangedCause.longPress
                        );
                    break;

                default:
                    renderEditable.selectWord(cause: SelectionChangedCause.longPress);
                    Feedback.forLongPress(_state.context);
                    break;
                }
            }
        }
예제 #6
0
        void _handleSingleLongTapMoveUpdate(LongPressMoveUpdateDetails details)
        {
            if (this.widget.selectionEnabled)
            {
                switch (Theme.of(this.context).platform)
                {
                case RuntimePlatform.IPhonePlayer:
                    this._renderEditable.selectPositionAt(
                        from: details.globalPosition,
                        cause: SelectionChangedCause.longPress
                        );
                    break;

                case RuntimePlatform.Android:
                    this._renderEditable.selectWordsInRange(
                        from: details.globalPosition - details.offsetFromOrigin,
                        to: details.globalPosition,
                        cause: SelectionChangedCause.longPress);
                    Feedback.forLongPress(this.context);
                    break;
                }
            }
        }