Accelerators

Accelerators are like translations but they map sequences of events in one widget to actions in another. This mechanism is needed when adding a keyboard interface in the application allowing, for example, a menu to pop up as a result of a key stroke.

Every widget has a xmNAccelerators resource, inherited from the Core widget class. The application must then call xtInstallAccelerators or xtInstallAllAccelerators to specify which widget will be used as the source of the actions to be invoked, and which will be the source of the events that invoke them.