mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 01:48:21 +02:00
Revert "Remove Ctrl+Z for undoing task removals until the conflict with other listeners for Ctrl+Z can be figured out"
This reverts commit 8f877a2cee559a97a03771039a89ad48c76327cc.
This commit is contained in:
parent
02fdafc111
commit
061e012cff
@ -320,6 +320,12 @@ function undoRemove() {
|
|||||||
|
|
||||||
undoButton.addEventListener('click', () => { undoRemove() })
|
undoButton.addEventListener('click', () => { undoRemove() })
|
||||||
|
|
||||||
|
document.addEventListener('keydown', function(e) {
|
||||||
|
if ((e.ctrlKey || e.metaKey) && e.key === 'z' && e.target == document.body) {
|
||||||
|
undoRemove()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
function showImages(reqBody, res, outputContainer, livePreview) {
|
function showImages(reqBody, res, outputContainer, livePreview) {
|
||||||
let imageItemElements = outputContainer.querySelectorAll('.imgItem')
|
let imageItemElements = outputContainer.querySelectorAll('.imgItem')
|
||||||
if(typeof res != 'object') return
|
if(typeof res != 'object') return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user