From ba02a2148ff3f396918d6f5294199820c97729ad Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 7 Sep 2021 23:11:16 +0100 Subject: [PATCH] Only allow maps shortcut when login required modal is open --- src/App.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5084586..50830b8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -143,8 +143,9 @@ export default defineComponent({ let element: LiveAtlasUIElement; - //Disable shortcuts if modal is open - except login required to allow server list toggling - if(store.state.ui.visibleModal && !loginRequired.value) { + // Disable all shortcuts if a modal other than login required is open + // Allow maps shortcut if the login required modal is open + if(store.state.ui.visibleModal && (!loginRequired.value || e.key !== 'M')) { return; }