mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-11 16:58:31 +01:00
Fix key presses in the image editor
https://discord.com/channels/1014774730907209781/1021695193499582494/1090733238034645082
This commit is contained in:
parent
11138a1d97
commit
5dd3f46cee
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user