Fix key presses in the image editor

https://discord.com/channels/1014774730907209781/1021695193499582494/1090733238034645082
This commit is contained in:
patriceac 2023-03-31 00:02:44 -07:00 committed by GitHub
parent 11138a1d97
commit 5dd3f46cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -672,12 +672,18 @@ class ImageEditor {
else {
this.history.redo()
}
event.stopPropagation();
event.preventDefault();
}
if (event.key == "y" && event.ctrlKey) {
this.history.redo()
event.stopPropagation();
event.preventDefault();
}
if (event.key === "Escape") {
this.hide()
event.stopPropagation();
event.preventDefault();
}
}