Property

GtkShortcutsShortcut:accelerator

Declaration

property accelerator: utf8 [ read, write ]

Description [src]

The accelerator(s) represented by this object.

This property is used if GtkShortcutsShortcut:shortcut-type is set to GTK_SHORTCUT_ACCELERATOR.

The syntax of this property is (an extension of) the syntax understood by 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: delete
  • Two alternative shortcuts: a Home
  • A range of shortcuts: 1…9
  • Several keys pressed together: Control_L&Control_R
  • A sequence of shortcuts or keys: c+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.

Type: gchar*

Flags

Readableyes
Writableyes
Constructno
Construct onlyno