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:
parent
97c86125f6
commit
2f8ee1b1bf
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue