From 58c7f3ba15feb84655063b71567537096f250ce3 Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Wed, 28 Dec 2022 23:50:56 -0800 Subject: [PATCH] ESC keyboard shortcut to close the image editor --- ui/media/js/image-editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/media/js/image-editor.js b/ui/media/js/image-editor.js index e193bd33..78f41b84 100644 --- a/ui/media/js/image-editor.js +++ b/ui/media/js/image-editor.js @@ -604,6 +604,9 @@ class ImageEditor { if (event.key == "y" && event.ctrlKey) { this.history.redo() } + if (event.key === "Escape") { + this.hide() + } } // dropper ctrl holding handler stuff