From 4fdd586a3c16b9b4801d9c157249a57c69912178 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 2 Sep 2024 15:00:19 +0200 Subject: [PATCH] UX: textfields now submit on Ctrl+Enter instead of Enter --- src/UI/InputElement/ValidatedInput.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/InputElement/ValidatedInput.svelte b/src/UI/InputElement/ValidatedInput.svelte index 30d023f6e..9bf029daa 100644 --- a/src/UI/InputElement/ValidatedInput.svelte +++ b/src/UI/InputElement/ValidatedInput.svelte @@ -55,7 +55,7 @@ } function onKeyPress(e: KeyboardEvent) { - if (e.key === "Enter") { + if (e.key === "Enter" && (!validator.textArea || e.ctrlKey)) { e.stopPropagation() e.preventDefault() dispatch("submit")