Function gtk::functions::accelerator_set_default_mod_mask
source · [−]pub fn accelerator_set_default_mod_mask(default_mod_mask: ModifierType)
Expand description
Sets the modifiers that will be considered significant for keyboard
accelerators. The default mod mask depends on the GDK backend in use,
but will typically include gdk::ModifierType::CONTROL_MASK
| gdk::ModifierType::SHIFT_MASK
|
gdk::ModifierType::MOD1_MASK
| gdk::ModifierType::SUPER_MASK
| gdk::ModifierType::HYPER_MASK
| gdk::ModifierType::META_MASK
.
In other words, Control, Shift, Alt, Super, Hyper and Meta. Other
modifiers will by default be ignored by AccelGroup
.
You must include at least the three modifiers Control, Shift and Alt in any value you pass to this function.
The default mod mask should be changed on application startup, before using any accelerator groups.
default_mod_mask
accelerator modifier mask