From 8f877a2cee559a97a03771039a89ad48c76327cc Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 30 Mar 2023 18:44:21 +0530 Subject: [PATCH] Remove Ctrl+Z for undoing task removals until the conflict with other listeners for Ctrl+Z can be figured out --- ui/media/js/main.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 49707f59..11bd9ee4 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -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