From f6c54d10740b5f1f4b81070c8964f3bc101c1570 Mon Sep 17 00:00:00 2001 From: Jaybe Date: Fri, 14 Nov 2025 20:36:23 +0900 Subject: [PATCH] =?UTF-8?q?fix(exporter):=20=EC=8A=A4=ED=82=B5=EB=A7=81?= =?UTF-8?q?=ED=81=AC=20=ED=99=9C=EC=84=B1=ED=99=94=20=EC=8B=9C=20main?= =?UTF-8?q?=EC=97=90=20=ED=8F=AC=EC=BB=A4=EC=8A=A4=20=EC=9D=B4=EB=8F=99=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/exporter/html.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/exporter/html.ts b/lib/exporter/html.ts index 05e4422..45ce4a0 100644 --- a/lib/exporter/html.ts +++ b/lib/exporter/html.ts @@ -282,6 +282,17 @@ function buildJs() { (function(){ var ts = document.querySelector('input[name="_ts"]'); if(ts){ ts.value = String(Date.now()); } + // Ensure skip-link moves focus into main for a11y + var skip = document.querySelector('a.skip-link'); + var main = document.getElementById('main'); + if (skip && main) { + skip.addEventListener('click', function(){ + if (!main.hasAttribute('tabindex')) { + main.setAttribute('tabindex', '-1'); + } + main.focus(); + }); + } })(); ` }