mirror of
https://github.com/bra1n/townsquare.git
synced 2025-04-04 22:24:36 +00:00
stopping key listener when role modal is open
This commit is contained in:
parent
274ddbbdfd
commit
6ed2d1e109
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ export default {
|
||||||
Gradients,
|
Gradients,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["grimoire", "session"]),
|
...mapState(["grimoire", "session", "modals"]),
|
||||||
...mapState("players", ["players"]),
|
...mapState("players", ["players"]),
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -97,7 +97,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
keyup({ key, ctrlKey, metaKey }) {
|
keyup({ key, ctrlKey, metaKey }) {
|
||||||
if (ctrlKey || metaKey || true) return;
|
if (ctrlKey || metaKey || this.modals.role) return;
|
||||||
switch (key.toLocaleLowerCase()) {
|
switch (key.toLocaleLowerCase()) {
|
||||||
case "g":
|
case "g":
|
||||||
this.$store.commit("toggleGrimoire");
|
this.$store.commit("toggleGrimoire");
|
||||||
|
|
Loading…
Add table
Reference in a new issue