Fix escape key to close menu

This commit is contained in:
Samuel Elliott 2018-08-10 15:21:33 +01:00
parent 22e78c03e1
commit 344a9e6fe5
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 1 additions and 1 deletions

View File

@ -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();
},