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,