Skip to main content

step

Function step 

Source
pub fn step(rows: &[Row], cursor: usize, direction: Direction) -> Option<Move>
Expand description

What an arrow key means at cursor, or None when it means nothing.

Neither end wraps. A menu wraps because it is a ring of choices; a tree is a document, and arriving back at the top because you pressed down once too often loses your place in it.