Skip to content

Commit

Permalink
fix dead-key issue on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Aug 25, 2016
1 parent 61dd51a commit 26f5824
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vs/editor/common/controller/textAreaHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ export class TextAreaHandler extends Disposable {

// Due to isEdgeOrIE (where the textarea was not cleared initially)
// we cannot assume the text at the end consists only of the composited text
this.textAreaState = this.textAreaState.fromTextArea(this.textArea);
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
this.textAreaState = this.textAreaState.fromTextArea(this.textArea);
}

this.lastCompositionEndTime = (new Date()).getTime();
if (!this.textareaIsShownAtCursor) {
Expand Down

0 comments on commit 26f5824

Please sign in to comment.