Preview: Close on esc key press

This commit is contained in:
Alvaro Aleman 2021-02-14 19:38:57 -05:00
parent f1b7bd59f6
commit 44eacbf6bc
No known key found for this signature in database
GPG Key ID: 6E9273AE7639178C

View File

@ -177,6 +177,8 @@ export default {
if (this.hasNext) this.next()
} else if (event.which === 37) { // left arrow
if (this.hasPrevious) this.prev()
} else if (event.which === 27) { // esc
this.back()
}
},
async updatePreview () {