aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editor/editor.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor.ts b/editor/editor.ts
index 5b721a1..9cd4988 100644
--- a/editor/editor.ts
+++ b/editor/editor.ts
@@ -131,6 +131,9 @@ export class WuiEditor {
this.elContent.onkeyup = (ev: KeyboardEvent) => {
this.onKeyupDocument(this, ev);
};
+ this.elContent.addEventListener("blur", () => {
+ this.isKeyControl = false;
+ });
}
this.elContent.classList.add(WUI_EDITOR_CLASS_CONTENT);
this.el.appendChild(this.elContent);