mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
Fix #15765. Update textarea state even if there is no selection change in composition
This commit is contained in:
parent
24e12428b8
commit
c70ac2dcd9
1 changed files with 2 additions and 5 deletions
|
@ -154,12 +154,9 @@ export class TextAreaHandler extends Disposable {
|
|||
let typeInput = this.textAreaState.updateComposition();
|
||||
this._onType.fire(typeInput);
|
||||
|
||||
// Due to isEdgeOrIE (where the textarea was not cleared initially)
|
||||
// Due to isEdgeOrIE (where the textarea was not cleared initially) and isChrome (the textarea is not updated correctly when composition ends)
|
||||
// we cannot assume the text at the end consists only of the composited text
|
||||
if (Browser.isEdgeOrIE) {
|
||||
// In Chrome v49, the text at the time of the compositionend event is not really the final text
|
||||
// for the mac dead key input method.
|
||||
// N.B: This can be removed in Chrome v53
|
||||
if (Browser.isEdgeOrIE || Browser.isChrome) {
|
||||
this.textAreaState = this.textAreaState.fromTextArea(this.textArea);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue