Package: gdk

Function gdk-keymap-map-virtual-modifiers

Lambda List

gdk-keymap-map-virtual-modifiers (keymap state)

Arguments

keymap -- a gdk-keymap object
state -- a value of the gdk-modifier-type flags

Return Value

modifier -- a gdk-mofiier-type value
True if no virtual modifiers were mapped to the same non-virtual modifier. Note that nil is also returned if a virtual modifier is mapped to a non-virtual modifier that was already set in state.

Details

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.

Example

(gdk-keymap-map-virtual-modifiers keymap :super-mask)
=> (:MOD4-MASK :SUPER-MASK)
=> T    
 

See also

2021-12-13