spanish-quizzer

An app to quiz you on Spanish vocabulary and verb conjugations
git clone https://git.ashermorgan.net/spanish-quizzer/
Log | Files | Refs | README

commit c60167ef44616b4b5c65229b9add543312a4d73e
parent 90626c6b6a737a0d0d937ae8baa522a70a8a8b24
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Thu, 25 Mar 2021 13:00:17 -0700

Add keyboard shortcut for settings page

Diffstat:
Mjs/app.js | 1+
Mjs/filtersPage.js | 1+
Mjs/reference.js | 1+
3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/js/app.js b/js/app.js @@ -92,6 +92,7 @@ const homePage = Vue.component("homePage", { if (this._inactive) return; if (e.key === "c") this.$router.push("verbs"); if (e.key === "v") this.$router.push("vocab"); + if (e.key === ",") this.$router.push("settings"); if (e.key === "t") this.$router.push("reference"); if (e.key === "r") this.$router.push("quizzer"); }, diff --git a/js/filtersPage.js b/js/filtersPage.js @@ -357,6 +357,7 @@ const filtersPage = Vue.component("filtersPage", { */ keyup: function(e) { if (this._inactive) return; + if (e.key === ",") this.$router.push({name:"settings", params:{referer:this.$route.name}}); if (e.key === "s") this.StartSession(); } }, diff --git a/js/reference.js b/js/reference.js @@ -105,6 +105,7 @@ const referenceTables = Vue.component("referenceTables", { } if (e.key === "c") this.category = "verbs" if (e.key === "v") this.category = "vocab"; + if (e.key === ",") this.$router.push({name:"settings", params:{referer:this.$route.name}}); }, }, mounted: function() {