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 gdk:modifier-type value

Return Value

Details

Maps the virtual modifiers, that is Super, Hyper and Meta, which are set in state to their non-virtual counterparts, that is Mod2, Mod3, ..., and set the corresponding bits in the return value. This function is useful when matching key events against accelerators.

Example

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

See also

2023-3-4