Skip to main content

step_active

Function step_active 

Source
pub fn step_active(
    items: &[ContextMenuItem],
    current: usize,
    direction: i32,
) -> usize
Expand 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.