PopupMenu keyboard navigation enhancement


#1

Hi,

When I use PopupMenu::addSectionHeader, It add nice title for grouping my menu items.
But keyboard navigation (up and down) make a “pause” on this non triggerable items.

Can you modify PopupMenu::Item::canBeTriggered() method like this to avoid this behavior:

 // addSectionHeader create a custom component with magical itemId 0X4734a34f
bool canBeTriggered() const noexcept    { return isActive && itemID != 0 && itemID != 0X4734a34f;}

Thanks for your concern about this.


#2

Great, suggestion, thanks!


#3

Thanks for your fix.