Function gtk4::accelerator_name

source ·
pub fn accelerator_name(
    accelerator_key: Key,
    accelerator_mods: ModifierType
) -> GString
Expand description

Converts an accelerator keyval and modifier mask into a string parseable by gtk_accelerator_parse().

For example, if you pass in GDK_KEY_q and gdk::ModifierType::CONTROL_MASK, this function returns <Control>q.

If you need to display accelerators in the user interface, see accelerator_get_label().

accelerator_key

accelerator keyval

accelerator_mods

accelerator modifier mask

Returns

a newly-allocated accelerator name