shift + click to delete image

Hunter
Thursday, October 16th, 2025 at 12:08 PM

index.html+12-1

index.html
303  		function setupImageHandlers(imageData) {
304  			const container = imageData.container;
305  
    -			// Moving
306 +			// Moving / Deleting
307  			container.addEventListener('mousedown', (e) => {
308  				if (e.target.classList.contains('resize-handle')) return;
309  
310  				e.preventDefault();
311 +
312 +				// Shift-click to delete
313 +				if (e.shiftKey) {
314 +					const index = images.indexOf(imageData);
315 +					if (index > -1) {
316 +						images.splice(index, 1);
317 +					}
318 +					container.remove();
319 +					return;
320 +				}
321 +
322  				dragState = {
323  					image: imageData,
324  					startX: e.clientX,