mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-20 06:40:51 +00:00
Merge pull request #3376 from Aurantium-47/codex/preserve-keyboard-link-navigation
fix(website): preserve keyboard link activation in project rows
This commit is contained in:
commit
3e8c86bac6
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