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.
keyval |
a GDK keyval |
modifiers |
modifier mask |
true if the accelerator is valid |