Skip to main content

press

Function press 

Source
pub(crate) async fn press(
    state: &AppState,
    block_id: &str,
    agent: &str,
    selector: Option<&str>,
    key: &str,
    log: &impl Fn() -> Note,
) -> Pressed
Expand description

key (Enter, NumpadEnter or Space) on block_id, if the agent holds the power there. selector is focused first, as key does for any key.