Determines whether a given keyval and modifier mask constitute a valid keyboard accelerator.
For example, the gdk.types.KEY_a keyval plus gdk.types.ModifierType.ControlMask mark is valid, and matches the “Ctrl+a” accelerator. But, you can't, for instance, use the gdk.types.KEY_Control_L keyval as an accelerator.
a GDK keyval
modifier mask
true if the accelerator is valid
Determines whether a given keyval and modifier mask constitute a valid keyboard accelerator.
For example, the gdk.types.KEY_a keyval plus gdk.types.ModifierType.ControlMask mark is valid, and matches the “Ctrl+a” accelerator. But, you can't, for instance, use the gdk.types.KEY_Control_L keyval as an accelerator.