mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 17:55:09 +01:00
Remove Ctrl+Z for undoing task removals until the conflict with other listeners for Ctrl+Z can be figured out
This commit is contained in:
parent
dc4344043e
commit
8f877a2cee
@ -297,12 +297,6 @@ function 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) {
|
||||
let imageItemElements = outputContainer.querySelectorAll('.imgItem')
|
||||
if(typeof res != 'object') return
|
||||
|
Loading…
Reference in New Issue
Block a user