Merge pull request #729 from patriceac/patch-12

ESC keyboard shortcut to close the image editor
This commit is contained in:
cmdr2 2022-12-29 13:23:00 +05:30 committed by GitHub
commit 7832524963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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