pub fn step_active(
items: &[ContextMenuItem],
current: usize,
direction: i32,
) -> usizeExpand description
Navegación por teclado: dado el activo + dirección (+1/-1), el
siguiente índice válido (saltea separators y disabled). usize::MAX
si no hay elegibles.