Skip to main content

KeyboardModifiers

class KeyboardModifiers
info

This class cannot be instantiated directly. Instances are provided by gesture and pointer events, such as TapGestureEvent, DragGestureEvent, DragEvent, and HoverEvent.

Properties​

alt​

alt: Bool { get }

Whether the alt (option on macOS) key is pressed.


control​

control: Bool { get }

Whether the control key (command on macOS) is pressed.


shift​

shift: Bool { get }

Whether the shift key is pressed.