From 63b455a8df3126caba145c34d9dd2fa20d5e04e9 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 ce5651bf9e..53ac624a6b 100644 --- a/src/views/SignPDF/_partials/ModalEmailManager.vue +++ b/src/views/SignPDF/_partials/ModalEmailManager.vue @@ -18,7 +18,8 @@ :label="t('libresign', 'Enter your code')" :placeholder="t('libresign', 'Enter your code')" name="code" - type="text"> + type="text" + @keyup.enter="sendCode"> @@ -29,11 +30,15 @@ :placeholder="t('libresign', 'Email')" :helper-text="errorMessage" :error="errorMessage.length > 0" + @keyup.enter="requestCode" @input="onChangeEmail">