Skip to main content

escape_cancelled

Function escape_cancelled 

Source
pub fn escape_cancelled(ctx: &Context) -> Option<Id>
Expand description

The widget whose drag Escape cancelled in this pass, if any. With the focus plugin installed, a press of Escape during a drag is the drag’s, before any host’s (see the order): the plugin takes the press out of the input, so a gesture reads it here (or through cancel_pressed) and not from the keys. Asked as often as needed in the pass.