Package: gdk

Function gdk-keymap-modifier-mask

Lambda List

gdk-keymap-modifier-mask (keymap intent)

Arguments

keymap -- a gdk-keymap object
intent -- a value of the gdk-modifier-intent enumeration for the use case for the modifier mask

Return Value

The gdk-modifier-type modifier mask used for intent.

Details

Returns the modifier mask the windowing system backend of the keymap uses for a particular purpose.

Note that this function always returns real hardware modifiers, not virtual ones, e.g. it will return :mod1-mask rather than :meta-mask if the backend maps MOD1 to META), so there are use cases where the return value of this function has to be transformed by the gdk-keymap-add-virtual-modifiers function in order to contain the expected result.
 

See also

2021-12-13