mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-27 00:29:38 +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 {
|
else {
|
||||||
this.history.redo()
|
this.history.redo()
|
||||||
}
|
}
|
||||||
|
event.stopPropagation();
|
||||||
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
if (event.key == "y" && event.ctrlKey) {
|
if (event.key == "y" && event.ctrlKey) {
|
||||||
this.history.redo()
|
this.history.redo()
|
||||||
|
event.stopPropagation();
|
||||||
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
if (event.key === "Escape") {
|
if (event.key === "Escape") {
|
||||||
this.hide()
|
this.hide()
|
||||||
|
event.stopPropagation();
|
||||||
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user