From 36a48e39ee0ec54d1e4d8bc95daa058a0292b506 Mon Sep 17 00:00:00 2001 From: Tang Date: Thu, 31 Oct 2024 14:31:47 -0700 Subject: [PATCH] added enter to course req search --- .../src/components/Courses/CourseRequirementsSearch.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/components/Courses/CourseRequirementsSearch.vue b/frontend/src/components/Courses/CourseRequirementsSearch.vue index c53c719f..ccd97f1c 100644 --- a/frontend/src/components/Courses/CourseRequirementsSearch.vue +++ b/frontend/src/components/Courses/CourseRequirementsSearch.vue @@ -28,6 +28,7 @@ v-model="requirementsSearchInput.courseCode.value" placeholder="" tabindex="1" + v-on:keyup="keyHandler" >
@@ -39,6 +40,7 @@ placeholder="" tabindex="2" trim + v-on:keyup="keyHandler" >
@@ -66,6 +68,7 @@ placeholder="" tabindex="3" trim + v-on:keyup="keyHandler" >
@@ -243,6 +246,12 @@ export default { } } }, + keyHandler: function (e) { + if (e.keyCode === 13) { + //enter key pressed + this.courseRequirementsSearch(); + } + }, courseRequirementsSearch() { this.totalRequirementResults = ""; this.courseRequirementMessage = "";