Gtk.AccelGroup Class
Groups of global keyboard accelerators for an entire GtkWindow

See Also: AccelGroup Members


public class AccelGroup : GLib.Object


A GtkAccelGroup represents a group of keyboard accelerators, typically attached to a toplevel Gtk.Window (with Window.AddAccelGroup(AccelGroup)). Usually you won't need to create a Gtk.AccelGroup directly; instead, when using Gtk.ItemFactory, Gtk# automatically sets up the accelerators for your menus in the item factory's Gtk.AccelGroup.

Note that accelerators are different from mnemonics. Accelerators are shortcuts for activating a menu item; they appear alongside the menu item they are a shortcut for. For example "Ctrl+Q" might appear alongside the "Quit" menu item. Mnemonics are shortcuts for GUI elements such as text entries or buttons; they appear as underlined characters. Label.NewWithMnemonic(string). Menu items can have both accelerators and mnemonics, of course.


Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)
Assembly Versions: