Package: gtk
Function gtk-accelerator-parse
Lambda Listgtk-accelerator-parse (accelerator) ArgumentsReturn Value key -- an unsigned integer with an accelerator keyval mask -- a gdk-modifier-type accelerator modifier mask, or nil Details
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>". Key names are parsed using the gdk-keyval-from-name function. For character keys the name is not the symbol, but the lowercase name, e.g. one would use "<Ctrl>minus" instead of "<Ctrl>-". If the parse fails, the key argument will be set to 0. Examples(gtk-accelerator-parse "<Control>a") => 97 => (:CONTROL-MASK) | See also |
2021-12-24