From 45200da32fa2a4bc6a491d6e01b707cda6bc82f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Sat, 16 Jan 2021 16:40:59 +0100 Subject: [PATCH] Helpful comment. See #8152 (#8160) --- .../lovelace/editor/config-elements/hui-markdown-card-editor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts index 1fde251a1d..138f95209c 100644 --- a/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts @@ -91,6 +91,7 @@ export class HuiMarkdownCardEditor extends LitElement } private _ignoreKeydown(ev: KeyboardEvent) { + // Stop keyboard events from the paper-textarea from propagating to avoid accidentally closing the dialog when the user presses Enter. ev.stopPropagation(); }