Function

Gtk-3.0Gtkaccelerator_get_label_with_keycodeSince 3.4

  • Converts an accelerator keyval and modifier mask into a (possibly translated) string that can be displayed to a user, similarly to gtk_accelerator_get_label(), but handling keycodes.

    This is only useful for system-level components, applications should use gtk_accelerator_parse() instead.

    Parameters

    • display: Gdk.Display

      a Gdk.Display or null to use the default display

    • accelerator_key: number

      accelerator keyval

    • keycode: number

      accelerator keycode

    • accelerator_mods: Gdk.ModifierType

      accelerator modifier mask

    Returns string

    a newly-allocated string representing the accelerator.

    3.4