Fix inability to navigate up and down with arrow keys in interactive-style menu lists (#3768)

fixed keyboard navigation in font picker
This commit is contained in:
Jill Chhagnani 2026-02-16 00:49:23 +05:30 committed by GitHub
parent 97c86125f6
commit 2f8ee1b1bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -252,9 +252,6 @@
/// Handles keyboard navigation for the menu.
// Returns a boolean indicating whether the entire menu stack should be dismissed.
export function keydown(e: KeyboardEvent, submenu = false): boolean {
// Interactive menus should keep the active entry the same as the highlighted one
if (interactive) highlighted = activeEntry;
const menuOpen = open;
const flatEntries = filteredEntries.flat().filter((entry) => !entry.disabled);
const openChild = (openChildValue !== undefined && flatEntries.findIndex((entry) => entry.value === openChildValue)) || -1;