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 = "";