Skip to main content

context_menu_opened

Function context_menu_opened 

Source
pub fn context_menu_opened<R>(
    response: &Response,
    by_key: bool,
    add: impl FnOnce(&mut Ui) -> R,
) -> Option<InnerResponse<R>>
Expand description

As context_menu, by_key saying that the keyboard opens it now: for a widget whose rows open menus while the focus stays on the widget (a tree’s cursor row), which asks menu_key itself.