develop ← emezeske:pr/popup-menu-custom-item-keyboard-nav
opened 09:00PM - 08 Aug 26 UTC
Custom menu items created with isTriggeredAutomatically=false handle their own m…ouse clicks, but the arrow keys skip over them and return/space cannot activate them, so a menu containing them is unusable from the keyboard.
This lets them be highlighted like any other item and makes return/space dismiss the menu with the item's ID, which is exactly what CustomComponent::triggerMenuItem() does. Mouse handling still goes through canBeTriggered(), so nothing changes there.