KeyEventStruct.state

uint state() @property

Get state field.

Returns

A bitmask representing the state of the modifier keys immediately after the event takes place.

The meaning of the bits is currently defined to match the bitmask used by GDK in GdkEventType.state, see

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventKey
void state(uint propval) @property

Set state field.

Parameters

propvalA bitmask representing the state of the modifier keys immediately after the event takes place. The meaning of the bits is currently defined to match the bitmask used by GDK in GdkEventType.state, see http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventKey