mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user