Skip to content

Commit

Permalink
Merge pull request #666 from bcgov/vuetify-mt
Browse files Browse the repository at this point in the history
added enter to course req search
  • Loading branch information
suzalflueck authored Oct 31, 2024
2 parents 86ee01b + 36a48e3 commit 4595311
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/components/Courses/CourseRequirementsSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
v-model="requirementsSearchInput.courseCode.value"
placeholder=""
tabindex="1"
v-on:keyup="keyHandler"
></v-text-field>
</div>
<div class="advanced-search-field col-12 col-md-2">
Expand All @@ -39,6 +40,7 @@
placeholder=""
tabindex="2"
trim
v-on:keyup="keyHandler"
></v-text-field>
</div>
<div class="advanced-search-field col-12 col-md-2">
Expand Down Expand Up @@ -66,6 +68,7 @@
placeholder=""
tabindex="3"
trim
v-on:keyup="keyHandler"
></v-text-field>
</div>
</v-row>
Expand Down Expand Up @@ -243,6 +246,12 @@ export default {
}
}
},
keyHandler: function (e) {
if (e.keyCode === 13) {
//enter key pressed
this.courseRequirementsSearch();
}
},
courseRequirementsSearch() {
this.totalRequirementResults = "";
this.courseRequirementMessage = "";
Expand Down

0 comments on commit 4595311

Please sign in to comment.