1 2@c %start of fragment 3 4@node Accelerator Groups 5@chapter Accelerator Groups 6Groups of global keyboard accelerators for an entire GtkWindow 7 8@section Overview 9A @code{<gtk-accel-group>} represents a group of keyboard accelerators, 10typically attached to a toplevel @code{<gtk-window>} (with 11@code{gtk-window-add-accel-group}). Usually you won't need to create a 12@code{<gtk-accel-group>} directly; instead, when using 13@code{<gtk-item-factory>}, GTK+ automatically sets up the accelerators for your 14menus in the item factory's @code{<gtk-accel-group>}. 15 16Note that @dfn{accelerators} are different from @dfn{mnemonics}. Accelerators 17are shortcuts for activating a menu item; they appear alongside the menu item 18they're a shortcut for. For example "Ctrl+Q" might appear alongside the "Quit" 19menu item. Mnemonics are shortcuts for GUI elements such as text entries or 20buttons; they appear as underlined characters. See 21@code{gtk-label-new-with-mnemonic}. Menu items can have both accelerators and 22mnemonics, of course. 23 24@section Usage 25@include defuns-gtkaccelgroup.xml.texi 26 27@c %end of fragment 28