Fix escape key to close menu
This commit is contained in:
parent
22e78c03e1
commit
344a9e6fe5
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue