Merge pull request #3376 from Aurantium-47/codex/preserve-keyboard-link-navigation
Some checks failed
CI / test (push) Has been cancelled
Deploy Website / deploy (push) Has been cancelled

fix(website): preserve keyboard link activation in project rows
This commit is contained in:
Vinta Chen 2026-10-17 16:58:56 +08:00 • committed by GitHub
commit 3e8c86bac6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -331,6 +331,7 @@ if (tbody) {
// Keyboard: Enter or Space on focused .row toggles expand
tbody.addEventListener("keydown", function (e) {
if (e.key !== "Enter" && e.key !== " ") return;
if (e.target.closest("a")) return;
const row = e.target.closest("tr.row");
if (!row) return;
e.preventDefault();