Function

Gtk-4.0Gtkaccelerator_get_accessible_labelSince 4.22

  • Generates an accessible description of an accelerator.

    This function is similar to Gtk.accelerator_get_label but it is meant for accessibility layers labels rather than user-facing labels. The output of this function is fit for Gtk.AccessibleProperty.KEY_SHORTCUTS.

    For more information, see the WAI-ARIA reference.

    Parameters

    • accelerator_key: number

      accelerator keyval

    • accelerator_mods: Gdk.ModifierType

      accelerator modifier mask

    Returns string

    a newly-allocated string representing the accelerator

    4.22