|
1061 | 1061 | _setBlur: function (event) { //Base Editor |
1062 | 1062 | var newValue; |
1063 | 1063 | if (this._cancelBlurOnInput) { |
1064 | | - this._editorInput.focus(); |
| 1064 | + this._editorInput.trigger("focus"); |
1065 | 1065 | delete this._cancelBlurOnInput; |
1066 | 1066 | } else { |
1067 | 1067 | this._triggerBlur(event); |
|
3559 | 3559 | // Proceed with hiding |
3560 | 3560 | // D.P. 21 Jun 2016 Bug 220712: igTextEditor - typed text is reverted to previous value in case the drop down is opened |
3561 | 3561 | if (!this._editMode && !this.options.suppressKeyboard) { |
3562 | | - this._editorInput.focus(); |
| 3562 | + this._editorInput.trigger("focus"); |
3563 | 3563 | } |
3564 | 3564 | if (this._editMode && this.options.suppressKeyboard) { |
3565 | 3565 | this._editorInput.blur(); |
|
3640 | 3640 | range.collapse(true); |
3641 | 3641 | range.moveEnd("character", selectionEnd); |
3642 | 3642 | range.moveStart("character", selectionStart); |
3643 | | - range.select(); |
| 3643 | + range.trigger("select"); |
3644 | 3644 | } |
3645 | 3645 | }, |
3646 | 3646 | _positionCursor: function (startPosition, endPosition) { |
|
3660 | 3660 | currentValue.length); |
3661 | 3661 | }, 100)); |
3662 | 3662 | } else { |
3663 | | - this._editorInput.select(); |
| 3663 | + this._editorInput.trigger("select"); |
3664 | 3664 | } |
3665 | 3665 | } |
3666 | 3666 | break; |
|
3718 | 3718 | currentValue.length); |
3719 | 3719 | }, 100)); |
3720 | 3720 | } else { |
3721 | | - this._editorInput.select(); |
| 3721 | + this._editorInput.trigger("select"); |
3722 | 3722 | } |
3723 | 3723 | } |
3724 | 3724 | } |
|
3727 | 3727 | break; |
3728 | 3728 | } |
3729 | 3729 | } else { |
3730 | | - this._editorInput.select(); |
| 3730 | + this._editorInput.trigger("select"); |
3731 | 3731 | } |
3732 | 3732 | }, |
3733 | 3733 | _carryOverNewLine: function(value) { |
|
3758 | 3758 | if (this._editMode) { |
3759 | 3759 | this._editorInput.val(nextItem.text()); |
3760 | 3760 | this._processTextChanged(); |
3761 | | - this._editorInput.select(); |
| 3761 | + this._editorInput.trigger("select"); |
3762 | 3762 | } else { |
3763 | 3763 | this._processValueChanging(nextItem.text()); |
3764 | 3764 | this._editorInput.val(this._getDisplayValue()); |
|
5828 | 5828 | } else { |
5829 | 5829 | this._spinUp(); |
5830 | 5830 | if (this._focused) { |
5831 | | - this._editorInput.select(); |
| 5831 | + this._editorInput.trigger("select"); |
5832 | 5832 | } |
5833 | 5833 | } |
5834 | 5834 | }, |
|
5839 | 5839 | } else { |
5840 | 5840 | this._spinDown(); |
5841 | 5841 | if (this._focused) { |
5842 | | - this._editorInput.select(); |
| 5842 | + this._editorInput.trigger("select"); |
5843 | 5843 | } |
5844 | 5844 | } |
5845 | 5845 | }, |
|
7381 | 7381 | } |
7382 | 7382 | if (result === false && this._editSelectAllStarted) { |
7383 | 7383 | this._editorInput.val(this._editorValueBeforeClear); |
7384 | | - this._editorInput.select(); |
| 7384 | + this._editorInput.trigger("select"); |
7385 | 7385 | delete this._editSelectAllStarted; |
7386 | 7386 | delete this._editorValueBeforeClear; |
7387 | 7387 | } |
|
8911 | 8911 | _setBlur: function (event) { //DateEditor |
8912 | 8912 | var newValue, oldVal, convertedDate; |
8913 | 8913 | if (this._cancelBlurOnInput) { |
8914 | | - this._editorInput.focus(); |
| 8914 | + this._editorInput.trigger("focus"); |
8915 | 8915 | delete this._cancelBlurOnInput; |
8916 | 8916 | } else { |
8917 | 8917 | this._triggerBlur(event); |
|
11080 | 11080 | } else { |
11081 | 11081 | self._focused = false; |
11082 | 11082 | if (!self.options.suppressKeyboard) { |
11083 | | - self._editorInput.focus(); |
| 11083 | + self._editorInput.trigger("focus"); |
11084 | 11084 | } |
11085 | 11085 | } |
11086 | 11086 | }, |
@@ -12109,12 +12109,12 @@ |
12109 | 12109 | if (delay) { |
12110 | 12110 | this._timeouts.push(setTimeout(function () { |
12111 | 12111 | self._cancelFocusTrigger = true; |
12112 | | - self._editorContainer.focus(); |
| 12112 | + self._editorContainer.trigger("focus"); |
12113 | 12113 | self._setFocus(); |
12114 | 12114 | }, delay)); |
12115 | 12115 | } else { |
12116 | 12116 | this._cancelFocusTrigger = true; |
12117 | | - this._editorContainer.focus(); |
| 12117 | + this._editorContainer.trigger("focus"); |
12118 | 12118 | this._setFocus(); |
12119 | 12119 | } |
12120 | 12120 | }, |
|
0 commit comments