From ac9b5cbc06f4691aa135e28fc6f740840016409a Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 20 Apr 2026 00:13:37 -0400 Subject: [PATCH] revert: remove modal tag-input auto-focus The restore in fb925f5 was based on an observation of an older running image, not a real regression against current main. User doesn't want the auto-focus behavior; removing it so the modal opens without moving focus. Co-Authored-By: Claude Opus 4.7 --- app/static/js/view-modal.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/static/js/view-modal.js b/app/static/js/view-modal.js index 2934da6..ba333ed 100644 --- a/app/static/js/view-modal.js +++ b/app/static/js/view-modal.js @@ -811,14 +811,6 @@ document.addEventListener('DOMContentLoaded', () => { modal.classList.add('active'); updateImage(index); history.replaceState({ modalIndex: index }, '', window.location.href); - // Desktop only — skip on touch devices to avoid popping the on-screen keyboard - if (tagInput && !isTouchDevice()) { - setTimeout(() => tagInput.focus(), 100); - } - } - - function isTouchDevice() { - return ('ontouchstart' in window) || (navigator.maxTouchPoints > 0); } function closeModal() {