From a294a940753fc86da4e35208b91c3142ac0dd434 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Thu, 16 Apr 2026 14:55:43 +0200 Subject: [PATCH] feat(vocabLesson): enhance input handling for gap-fill exercises - Added functionality to manage Enter key events for gap-fill and single input fields, improving user experience during exercises. - Introduced methods `onGapInputEnter` and `onSingleInputEnter` to streamline answer checking and navigation between input fields. - Updated input elements with refs for better focus management, ensuring a smoother interaction flow for users. --- frontend/src/views/social/VocabLessonView.vue | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/frontend/src/views/social/VocabLessonView.vue b/frontend/src/views/social/VocabLessonView.vue index baef318..4c2dd67 100644 --- a/frontend/src/views/social/VocabLessonView.vue +++ b/frontend/src/views/social/VocabLessonView.vue @@ -613,6 +613,8 @@ v-model="exerciseAnswers[exercise.id][index]" :placeholder="$t('socialnetwork.vocab.courses.enterAnswer')" class="gap-input" + :ref="getGapInputRef(exercise.id, index)" + @keydown.enter.prevent="onGapInputEnter(exercise, index)" />