Skip to content

Commit

Permalink
escape closes gallery modal again part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Aug 4, 2024
1 parent 8f82faa commit 8ae8f04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/gallery/modal/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
fullscreen
hide-overlay
transition="dialog-bottom-transition"
@keyup.esc="closeModal"
@keydown.esc="closeModal"
>
<v-card>
<fullscreen-preview v-model="previewOpen" :src="clickedImage" :aspect-ratio="1 / 1" texture />
Expand Down Expand Up @@ -150,6 +150,7 @@ export default {
methods: {
closeModal() {
this.$emit("close");
this.textureObj = {};
this.modalOpened = false;
},
openFullscreenPreview(url) {
Expand Down

0 comments on commit 8ae8f04

Please sign in to comment.