diff --git a/frontend/app/components/Domain/Recipe/RecipeContextMenu/RecipeContextMenuContent.vue b/frontend/app/components/Domain/Recipe/RecipeContextMenu/RecipeContextMenuContent.vue index fbcf299d3..ebe6df543 100644 --- a/frontend/app/components/Domain/Recipe/RecipeContextMenu/RecipeContextMenuContent.vue +++ b/frontend/app/components/Domain/Recipe/RecipeContextMenu/RecipeContextMenuContent.vue @@ -32,7 +32,6 @@ density="compact" :label="$t('recipe.recipe-name')" autofocus - @keyup.enter="duplicateRecipe()" /> diff --git a/frontend/app/components/global/BaseDialog.vue b/frontend/app/components/global/BaseDialog.vue index 4aed553e4..70fd2ec63 100644 --- a/frontend/app/components/global/BaseDialog.vue +++ b/frontend/app/components/global/BaseDialog.vue @@ -192,6 +192,14 @@ function submitOnEnter() { return; } + if (props.canConfirm) { + if (!props.submitDisabled) { + emit("confirm"); + dialog.value = false; + } + return; + } + submitEvent(); }