acceleratorParseWithKeycode

Parses a string representing an accelerator, similarly to gtk.global.acceleratorParse but handles keycodes as well. This is only useful for system-level components, applications should use gtk.global.acceleratorParse instead.

If accelerator_codes is given and the result stored in it is non-null, the result must be freed with glib.global.gfree.

If a keycode is present in the accelerator and no accelerator_codes is given, the parse will fail.

If the parse fails, accelerator_key, accelerator_mods and accelerator_codes will be set to 0 (zero).

void
acceleratorParseWithKeycode

Parameters

accelerator string

string representing an accelerator

acceleratorKey uint

return location for accelerator keyval, or null

acceleratorCodes uint[]

return location for accelerator keycodes, or null

acceleratorMods gdk.types.ModifierType

return location for accelerator modifier mask, null