From 977ec339181a60c32a60baaf0f36277479c6964a Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Tue, 16 Feb 2021 11:15:04 -0500 Subject: [PATCH] chore: close preview on esc key press (#1288) --- frontend/src/components/files/Preview.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/files/Preview.vue b/frontend/src/components/files/Preview.vue index f72ad38b..8b42a0da 100644 --- a/frontend/src/components/files/Preview.vue +++ b/frontend/src/components/files/Preview.vue @@ -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 () {