accelerator_valid


Description:


public bool accelerator_valid (uint keyval, ModifierType modifiers)

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

For example, the a keyval plus CONTROL_MASK is valid - this is a “Ctrl+a” accelerator. But, you can't, for instance, use the Control_L keyval as an accelerator.

Parameters:

keyval

a GDK keyval

modifiers

modifier mask

Returns:

true if the accelerator is valid


Namespace: Gtk
Package: gtk+-3.0



2022 vala-language.org