diff options
-rw-r--r-- | src-vue/src/components/PullRequestsSelector.vue | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src-vue/src/components/PullRequestsSelector.vue b/src-vue/src/components/PullRequestsSelector.vue index ba95624a..585b3e6a 100644 --- a/src-vue/src/components/PullRequestsSelector.vue +++ b/src-vue/src/components/PullRequestsSelector.vue @@ -1,7 +1,7 @@ <template> <div> <el-collapse @change="onChange"> - <el-collapse-item name="1"> + <el-collapse-item name="1" @keydown.space="launcherSearchSpace"> <template #title> Launcher PRs <el-input class="pr_search_input" v-model="launcherSearch" placeholder="Filter pull requests" @click.stop="() => false"></el-input> @@ -34,7 +34,7 @@ </div> </el-collapse-item> - <el-collapse-item name="2"> + <el-collapse-item name="2" @keydown.space="modsSearchSpace"> <template #title> Mods PRs <el-input class="pr_search_input" v-model="modsSearch" placeholder="Filter pull requests" @click.stop="() => false"></el-input> @@ -128,6 +128,14 @@ export default defineComponent({ this.getPullRequests('Mods'); } }, + launcherSearchSpace(e: KeyboardEvent) { + e.preventDefault(); + this.launcherSearch += ' '; + }, + modsSearchSpace(e: KeyboardEvent) { + e.preventDefault(); + this.modsSearch += ' '; + }, async getPullRequests(pull_request_type: PullRequestType) { this.$store.commit('getPullRequests', pull_request_type); }, |