Skip to main content

cancel_pressed

Function cancel_pressed 

Source
pub fn cancel_pressed(ctx: &Context, key: Key) -> bool
Expand description

Whether a gesture’s cancel key was pressed in this pass: the key itself, or, for Escape, the press the focus plugin took for the drag it cancelled (escape_cancelled). A drag that ends (drag_stopped) asks this to know whether it was cancelled.