From 5949c7e35c14d7c1356a96b6e2ccba53ab717c02 Mon Sep 17 00:00:00 2001 From: june Date: Fri, 15 Aug 2025 14:23:09 +1200 Subject: [PATCH] Fix shift+enter leaving a new line in input --- src/script/newRecipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/newRecipe.ts b/src/script/newRecipe.ts index a36fd3d..2bb7786 100644 --- a/src/script/newRecipe.ts +++ b/src/script/newRecipe.ts @@ -31,7 +31,7 @@ document.addEventListener('DOMContentLoaded', function() { ingredientFields[2].addEventListener('keyup', e => {if (e.key === 'Enter') addIngredient()} ) // Steps - stepInput.addEventListener('keydown', e => { if (e.key === 'Enter') addStep() } ) + stepInput.addEventListener('keyup', e => { if (e.key === 'Enter' && e.shiftKey) addStep() } ) }); // - ADD