### Function

# Gtk accelerator_valid

since: 4.0

#### Declaration [src]

    gboolean
    gtk_accelerator_valid (
      guint keyval,
      GdkModifierType modifiers
    )

#### Description [src]

Determines whether a given keyval and modifier mask constitute a valid keyboard accelerator.

For example, the %GDK_KEY_a keyval plus `GDK_CONTROL_MASK` mark is valid, and matches the “Ctrl+a” accelerator. But, you can’t, for instance, use the %GDK_KEY_Control_L keyval as an accelerator.

Available since: 4.0

#### Parameters

`keyval`

  Type: `guint`

  A GDK keyval.

`modifiers`

  Type: `GdkModifierType`

  Modifier mask.

#### Return value

Type: `gboolean`

`TRUE` if the accelerator is valid.