Skip to main content

pointer_lock_intercept_escape

Function pointer_lock_intercept_escape 

Source
pub fn pointer_lock_intercept_escape(
    event: &KeystrokeEvent,
    window: &mut Window,
    cx: &mut App,
)
Expand description

Escape releases the lock before anything else hears the key, and nothing on the page does. Every other key press counts as a gesture.