Keymap.mapVirtualModifiers

Maps the virtual modifiers (i.e. Super, Hyper and Meta) which are set in state to their non-virtual counterparts (i.e. Mod2, Mod3,...) and set the corresponding bits in state.

This function is useful when matching key events against accelerators.

class Keymap
bool
mapVirtualModifiers

Parameters

state GdkModifierType

pointer to the modifier state to map

Return Value

Type: bool

FALSE if two virtual modifiers were mapped to the same non-virtual modifier. Note that FALSE is also returned if a virtual modifier is mapped to a non-virtual modifier that was already set in state.

Meta

Since

2.20