void gdk_keymap_add_virtual_modifiers ( GdkKeymap* keymap, GdkModifierType* state )
Maps the non-virtual modifiers (i.e Mod2, Mod3, …) which are set
state to the virtual modifiers (i.e. Super, Hyper and Meta) and
set the corresponding bits in
GDK already does this before delivering key events, but for compatibility reasons, it only sets the first virtual modifier it finds, whereas this function sets all matching virtual modifiers.
This function is useful when matching key events against accelerators.
Available since: 2.20
Pointer to the modifier mask to change.
The argument will be modified by the function. The caller of the method takes ownership of the data, and is responsible for freeing it.