From fb58bb6f365db51130b0a7958fc81830ec5ebd70 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Wed, 4 Dec 2024 16:49:01 +0100 Subject: [PATCH] Fix issue of Enter keystroke within New Note dialog being picked up by Editor (in web app) --- src/components/NewNote.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/NewNote.vue b/src/components/NewNote.vue index 6581a35..96bc77a 100644 --- a/src/components/NewNote.vue +++ b/src/components/NewNote.vue @@ -92,6 +92,8 @@ this.$emit("close") event.preventDefault() } if (event.key === "Enter") { + // without preventDefault, the editor will receive a Enter keydown event on webapp (not in Electron) + event.preventDefault() this.submit() } },