()
| 635 | |
| 636 | // Keyboard Navigation Functions |
| 637 | function initializeKeyboardNavigation() { |
| 638 | updateNavigableRows(); |
| 639 | |
| 640 | // Add keyboard event listener |
| 641 | document.addEventListener("keydown", handleKeyboardNavigation); |
| 642 | |
| 643 | // Select first visible row by default |
| 644 | if (allNavigableRows.length > 0) { |
| 645 | setSelectedRow(0); |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | function updateNavigableRows() { |
| 650 | // Get all visible rows (both games and folders) |
no test coverage detected