提交 025b9d58 编写于 作者: P Peng Lyu 提交者: Peng Lyu

Fix microsoft/monaco-editor#552. Correct composition state when focus/blur editor.

上级 c807c8c3
......@@ -404,6 +404,12 @@ export class TextAreaInput extends Disposable {
}
this._hasFocus = newHasFocus;
if (this._isDoingComposition) {
// textarea gets focus, so the state should be clean
// https://github.com/Microsoft/monaco-editor/issues/552
this._isDoingComposition = false;
}
if (this._hasFocus) {
if (browser.isEdge) {
// Edge has a bug where setting the selection range while the focus event
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册