key binds fix

This commit is contained in:
Miloš Holba
2020-08-17 20:10:30 +02:00
parent ba315014fa
commit bb22ec1e88
7 changed files with 162 additions and 132 deletions

View File

@@ -5,7 +5,7 @@
id="fileFullPreview"
ref="filePreview"
tabindex="-1"
@keydown.esc="showFullPreview = false"
@keydown.esc="(showFullPreview = false), hideMenu()"
@keydown.right="next"
@keydown.left="prev"
>
@@ -41,6 +41,9 @@ export default {
prev: function () {
events.$emit("filePreviewAction:prev");
},
hideMenu() {
events.$emit("showContextMenuPreview:show");
},
},
updated() {
@@ -67,12 +70,6 @@ export default {
this.showFullPreview = false;
});
},
methods: {
hideMenu() {
events.$emit("showContextMenuPreview:hide");
console.log("aaaa");
},
},
};
</script>
@@ -92,4 +89,4 @@ export default {
background-color: $dark_mode_background;
}
}
</style>
</style>