mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-10 11:08:20 +02:00
Correct fix for Ctrl+Z shortcut in image editor
This commit is contained in:
parent
5dd3f46cee
commit
0b5c5b646f
@ -512,13 +512,13 @@ class ImageEditor {
|
|||||||
}
|
}
|
||||||
show() {
|
show() {
|
||||||
this.popup.classList.add("active")
|
this.popup.classList.add("active")
|
||||||
document.addEventListener("keydown", this.keyHandlerBound)
|
document.addEventListener("keydown", this.keyHandlerBound, true)
|
||||||
document.addEventListener("keyup", this.keyHandlerBound)
|
document.addEventListener("keyup", this.keyHandlerBound, true)
|
||||||
}
|
}
|
||||||
hide() {
|
hide() {
|
||||||
this.popup.classList.remove("active")
|
this.popup.classList.remove("active")
|
||||||
document.removeEventListener("keydown", this.keyHandlerBound)
|
document.removeEventListener("keydown", this.keyHandlerBound, true)
|
||||||
document.removeEventListener("keyup", this.keyHandlerBound)
|
document.removeEventListener("keyup", this.keyHandlerBound, true)
|
||||||
}
|
}
|
||||||
setSize(width, height) {
|
setSize(width, height) {
|
||||||
if (width == this.width && height == this.height) {
|
if (width == this.width && height == this.height) {
|
||||||
|
Loading…
Reference in New Issue
Block a user