GdkEvent::get_state

int get_state();

Returns the value of the modifier "state" field. If the event has no "state" field the empty state value (0) is returned. The "state" field contains a combination of the GdkModifierType constants.