Learn R Programming

RGtk2 (version 2.20.31)

gtkAcceleratorParse: gtkAcceleratorParse

Description

Parses a string representing an accelerator. The format looks like "a" or "F1" or "z" (the last one is for key release). The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "" and "".

Usage

gtkAcceleratorParse(accelerator)

Arguments

accelerator
string representing an accelerator

Value

A list containing the following elements:
accelerator.key
return location for accelerator keyval
accelerator.mods
return location for accelerator modifier mask

Details

If the parse fails, accelerator.key and accelerator.mods will be set to 0 (zero).