From 0b3e8dedf9a3dfde8e414c12e071d4a8a08f9019 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 25 Feb 2025 09:56:16 +0100 Subject: [PATCH] fix: merge revert --- src/components/FormModel.vue | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index c1cd80ce33..182eeaafed 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -307,38 +307,6 @@ async function onKeyup(evt) { } } -async function onKeyup(evt) { - if (evt.key === 'Enter' && !('prevent-submit' in attrs)) { - const input = evt.target; - if (input.type == 'textarea' && evt.shiftKey) { - let { selectionStart, selectionEnd } = input; - input.value = - input.value.substring(0, selectionStart) + - '\n' + - input.value.substring(selectionEnd); - selectionStart = selectionEnd = selectionStart + 1; - return; - } - await save(); - } -} - -async function onKeyup(evt) { - if (evt.key === 'Enter' && !('prevent-submit' in attrs)) { - const input = evt.target; - if (input.type == 'textarea' && evt.shiftKey) { - let { selectionStart, selectionEnd } = input; - input.value = - input.value.substring(0, selectionStart) + - '\n' + - input.value.substring(selectionEnd); - selectionStart = selectionEnd = selectionStart + 1; - return; - } - await save(); - } -} - defineExpose({ save, isLoading,