mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-08 02:15:12 -06:00
fix(website): preserve keyboard link activation in project rows
Skip anchors in the delegated row key handler, matching the click handler. Assisted-by: OpenAI Codex <noreply@openai.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user