accelerator_parse_with_keycode
function accelerator_parse_with_keycode(accelerator:String):void { // Gjs wrapper for gtk_accelerator_parse_with_keycode() }
Parses a string representing an accelerator, similarly to accelerator_parse but handles keycodes as well. This is only useful for system-level components, applications should use accelerator_parse instead.
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).
Since 3.4
- accelerator
string representing an accelerator