Commit 10911b5d authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix problem with korean language (underline composite input)

parent 44a2f21c
...@@ -2715,6 +2715,19 @@ ...@@ -2715,6 +2715,19 @@
} }
this.replaceText(this.beginCompositePos, this.compositeLength, newText); this.replaceText(this.beginCompositePos, this.compositeLength, newText);
this.compositeLength = newText.length; this.compositeLength = newText.length;
var tmpBegin = this.selectionBegin, tmpEnd = this.selectionEnd;
this.selectionBegin = this.beginCompositePos;
this.selectionEnd = this.beginCompositePos + this.compositeLength;
this.setTextStyle('u', Asc.EUnderline.underlineSingle);
this.selectionBegin = tmpBegin;
this.selectionEnd = tmpEnd;
// Обновляем выделение
this._cleanSelection();
this._drawSelection();
}; };
CellEditor.prototype.End_CompositeInput = function () { CellEditor.prototype.End_CompositeInput = function () {
var tmpBegin = this.selectionBegin, tmpEnd = this.selectionEnd; var tmpBegin = this.selectionBegin, tmpEnd = this.selectionEnd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment