From 9bba92fa0b8ee07500ae397d3bd4cfae133ba08c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Thu, 2 Jan 2025 11:43:13 -0300 Subject: [PATCH] chore: make possible press enter to submit some forms Signed-off-by: Vitor Mattos --- src/Components/Request/RequestPicker.vue | 8 +- src/views/CreatePassword.vue | 6 +- src/views/ReadCertificate.vue | 6 +- src/views/ResetPassword.vue | 87 +++++++------------ .../SignPDF/_partials/ModalEmailManager.vue | 11 ++- src/views/SignPDF/_partials/Sign.vue | 8 +- src/views/Validation.vue | 6 +- 7 files changed, 62 insertions(+), 70 deletions(-) diff --git a/src/Components/Request/RequestPicker.vue b/src/Components/Request/RequestPicker.vue index 31bb11cb07..0478b9929d 100644 --- a/src/Components/Request/RequestPicker.vue +++ b/src/Components/Request/RequestPicker.vue @@ -3,7 +3,7 @@ - SPDX-License-Identifier: AGPL-3.0-or-later --> - diff --git a/src/views/SignPDF/_partials/ModalEmailManager.vue b/src/views/SignPDF/_partials/ModalEmailManager.vue index 9145ce309f..a9d3b66f2e 100644 --- a/src/views/SignPDF/_partials/ModalEmailManager.vue +++ b/src/views/SignPDF/_partials/ModalEmailManager.vue @@ -14,7 +14,8 @@ :label="t('libresign', 'Enter your code')" :placeholder="t('libresign', 'Enter your code')" name="code" - type="text"> + type="text" + @keyup.enter="sendCode"> @@ -25,11 +26,15 @@ :placeholder="t('libresign', 'Email')" :helper-text="errorMessage" :error="errorMessage.length > 0" + @keyup.enter="requestCode" @input="onChangeEmail">