mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 08:52:15 +00:00
key binds fix
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user