pub fn accelerator_parse_with_keycode(
    accelerator: impl IntoGStr,
    display: Option<&impl IsA<Display>>
) -> Option<(Key, Slice<u32>, ModifierType)>
Expand description

Parses a string representing an accelerator.

This is similar to accelerator_parse() but handles keycodes as well. This is only useful for system-level components, applications should use accelerator_parse() instead.

If @accelerator_codes is given and the result stored in it is non-None, the result must be freed with g_free().

If a keycode is present in the accelerator and no @accelerator_codes is given, the parse will fail.

If the parse fails, @accelerator_key, @accelerator_mods and @accelerator_codes will be set to 0 (zero).


string representing an accelerator


the gdk::Display to look up @accelerator_codes in


true if parsing succeeded


return location for accelerator keyval


return location for accelerator keycodes


return location for accelerator modifier mask