mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-09 07:45:01 +02:00
ESC keyboard shortcut to close the image editor
This commit is contained in:
@ -604,6 +604,9 @@ class ImageEditor {
|
|||||||
if (event.key == "y" && event.ctrlKey) {
|
if (event.key == "y" && event.ctrlKey) {
|
||||||
this.history.redo()
|
this.history.redo()
|
||||||
}
|
}
|
||||||
|
if (event.key === "Escape") {
|
||||||
|
this.hide()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// dropper ctrl holding handler stuff
|
// dropper ctrl holding handler stuff
|
||||||
|
Reference in New Issue
Block a user