Only allow maps shortcut when login required modal is open

This commit is contained in:
James Lyne 2021-09-07 23:11:16 +01:00
parent 12632004d1
commit ba02a2148f

View File

@ -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;
}