mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-20 06:40:51 +00: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:
parent
6352a70975
commit
1f880e070f
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue