acceleratorParseWithKeycode

fnbool acceleratorParseWithKeycode(string accelerator, gdk.display.Display display, out uint acceleratorKey, out uint[] acceleratorCodes, out gdk.types.ModifierType acceleratorMods)

Parses a string representing an accelerator.

This is similar to funcGtk.accelerator_parse but handles keycodes as well. This is only useful for system-level components, applications should use funcGtk.accelerator_parse 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).

Parameters

acceleratorstring representing an accelerator
displaythe [gdk.display.Display] to look up accelerator_codes in
acceleratorKeyreturn location for accelerator keyval
acceleratorCodesreturn location for accelerator keycodes
acceleratorModsreturn location for accelerator modifier mask

Returns

true if parsing succeeded