Accelerator table

In Windows programming, an accelerator table allows an application to specify a list of accelerators (keyboard shortcuts) for menu items or other commands.[1] For example, is often used as a shortcut to the File→Save menu item, is a common shortcut to the File→Open menu item, etc. An accelerator takes precedence over normal processing and can be a convenient way to program some event handling.

Accelerator tables are usually located in the resources section of the binary. Editors such as Resource Tuner are available that can modify the keystroke values and flags of the specific accelerator table.

## Contents

* 1 Accelerators and menus
* 2 Electron usage
* 3 See also
* 4 References

## Accelerators and menus

Each accelerator is associated with a control ID, the same kind of IDs which are assigned to buttons, combo boxes, list boxes, and also menu items. In this way, GUI objects can be created which represent the same function as an accelerator.

Since using the menus, and subsequently the mouse, is not always the best solution, it is important to provide users with the possibility to minimize usage of the mouse. For this reason showing the accelerators in menus can be useful; it informs the user that there are shortcuts, and that using the mouse is not always mandatory.

## Electron usage

The software framework Electron also uses the term "Accelerator" as the name for its API to specify keyboard shortcuts for menu items and program behaviors on multiple platforms, including those other than Windows.[2]

## See also

* Keyboard shortcut

## References

1. ↑ "Accelerator Tables". 2018-05-30. https://docs.microsoft.com/en-us/windows/win32/learnwin32/accelerator-tables.
2. ↑ "Accelerator". 2020-01-22. https://www.electronjs.org/docs/api/accelerator.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Accelerator table. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Accelerator_table&oldid=3985447"