Skip to main content

modifiers

Function modifiers 

Source
pub fn modifiers() -> ModifiersState
Expand description

The modifier keys held right now.

Authoritative rather than reconstructed: it comes from the platform’s own reading, including the one it re-sends when the window regains focus. Read it inside a pointer handler to tell a plain click from a Shift-click.