Skip to main content

press_or_refuse

Function press_or_refuse 

Source
pub(crate) async fn press_or_refuse(
    state: &AppState,
    block_id: &str,
    req: &UiBrowserDispatchKeyRequest,
    log: impl Fn() -> Note,
) -> Option<Response>
Expand description

key with Enter or Space (or text with a line break) on a pane an agent drives: taken as the click it is when a grant gives the power, otherwise refused with the reason and the way forward. None: carry on with the key (not a driven pane).