Package: gtk

Accessor gtk-shortcuts-shortcut-accelerator

Lambda List

gtk-shortcuts-shortcut-accelerator (object)

Syntax

(gtk-shortcuts-shortcut-accelerator object) => accelerator
(setf (gtk-shortcuts-shortcut-accelerator object) accelerator)

Arguments

object -- a gtk-shortcuts-shortcut widget
accelerator -- a :string with the accelerator

Details

Accessor of the accelerator of the gtk-shortcuts-shortcut class.

The accelerator(s) represented by this object. This property is used if "shortcut-type" is set to :accelerator. The syntax of this property is (an extension of) the syntax understood by the function gtk-accelerator-parse. Multiple accelerators can be specified by separating them with a space, but keep in mind that the available width is limited. It is also possible to specify ranges of shortcuts, using ... between the keys. Sequences of keys can be specified using a + or & between the keys.

Examples:
A single shortcut: <ctl><alt>delete
Two alternative shortcuts: <shift>a Home
A range of shortcuts: <alt>1...<alt>9
Several keys pressed together: Control_L&Control_R
A sequence of shortcuts or keys: <ctl>c+<ctl>x
Use + instead of & when the keys may (or have to be) pressed sequentially (e.g use t+t for 'press the t key twice').
Note that <, > and & need to be escaped as <, > and & when used in .ui files.
 

See also

2020-9-14