gtkAcceleratorParse {RGtk2}R Documentation

gtkAcceleratorParse

Description

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

Usage

gtkAcceleratorParse(accelerator)

Arguments

accelerator [character] string representing an accelerator

Details

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

Value

A list containing the following elements:

accelerator.key [numeric] return location for accelerator keyval
accelerator.mods [GdkModifierType] return location for accelerator modifier mask

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]