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