Package: gdk
Function gdk:keymap-add-virtual-modifiers
Lambda Listgdk:keymap-add-virtual-modifiers (keymap state) ArgumentsReturn ValueThe gdk:modfier-type flags. Details
Adds virtual modifiers, that is Super, Hyper and Meta, which correspond to
the real modifiers, that is Mod2, Mod3, ... in modifiers and set the
corresponding bits in state. 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. Example(defvar keymap (gdk:keymap-default)) => KEYMAP (gdk:keymap-add-virtual-modifiers keymap :mod4-mask) => (:MOD4-MASK :SUPER-MASK :HYPER-MASK) | See also |
2025-08-23