From 344a9e6fe54cc7b588db9acf4829904cc3f867d3 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Fri, 10 Aug 2018 15:21:33 +0100 Subject: [PATCH] Fix escape key to close menu --- client/src/ui/components/BdSettingsWrapper.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/ui/components/BdSettingsWrapper.vue b/client/src/ui/components/BdSettingsWrapper.vue index 96c34a7b..180519e6 100644 --- a/client/src/ui/components/BdSettingsWrapper.vue +++ b/client/src/ui/components/BdSettingsWrapper.vue @@ -47,7 +47,7 @@ methods: { keyupListener(e) { if (Modals.stack.length || !this.active || e.which !== 27) return; - if (this.$refs.settings.activeIndex !== -1) this.$refs.settings.closeContent(); + if (this.$refs.settings.item) this.$refs.settings.closeContent(); else this.active = false; e.stopImmediatePropagation(); },