From 796f39223b88a3c3e473421835e5e923df7c0d7c Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Wed, 20 Dec 2017 11:22:06 +0800 Subject: [PATCH] Fix backspace in composition --- src/vs/editor/browser/controller/textAreaInput.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/editor/browser/controller/textAreaInput.ts b/src/vs/editor/browser/controller/textAreaInput.ts index 97926f7e12a74..b9c5b03be3cbf 100644 --- a/src/vs/editor/browser/controller/textAreaInput.ts +++ b/src/vs/editor/browser/controller/textAreaInput.ts @@ -111,7 +111,8 @@ export class TextAreaInput extends Disposable { this._nextCommand = ReadFromTextArea.Type; this._register(dom.addStandardDisposableListener(textArea.domNode, 'keydown', (e: IKeyboardEvent) => { - if (this._isDoingComposition && e.keyCode === KeyCode.KEY_IN_COMPOSITION) { + if (this._isDoingComposition && + (e.keyCode === KeyCode.KEY_IN_COMPOSITION || e.keyCode === KeyCode.Backspace)) { // Stop propagation for keyDown events if the IME is processing key input e.stopPropagation(); }