Jump to content

Accelerator table: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
delete spam external links, add references, add new section about electron's usage of the term
Line 1: Line 1:
In [[Microsoft Windows|Windows]] programming, an '''accelerator table''' allows an application to specify a list of ''accelerators'' ([[keyboard shortcut]]s) for menu items or other commands.<ref>{{cite web |url=https://docs.microsoft.com/en-us/windows/win32/learnwin32/accelerator-tables|title=Accelerator Tables|author=<!--Not stated-->|date=2018-05-30|website=microsoft.com|access-date=2020-01-27}}</ref> For example, [[Control key|Ctrl]]+S is often used as a shortcut to the File→Save menu item, Ctrl+O 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]].
{{multiple issues|
{{unreferenced|date=December 2009}}
{{notability|date=April 2012}}
}}

In [[Microsoft Windows|Windows]] programming, an '''accelerator table''' allows an application to specify a list of ''accelerators'' ([[keyboard shortcut]]s) for menu items or other commands. For example, [[Control key|Ctrl]]+S is often used as a shortcut to the File→Save menu item, Ctrl+O 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 [[resource (Windows)|resources]] section of the [[Portable Executable|binary]].
Accelerator tables are usually located in the [[resource (Windows)|resources]] section of the [[Portable Executable|binary]].


==Accelerators and menus==
==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.
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.
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 (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.<ref>{{cite web |url=https://www.electronjs.org/docs/api/accelerator|title=Accelerator|author=<!--Not stated-->|date=2020-01-22|website=electronjs.org|access-date=2020-01-27}}</ref>


==See also==
==See also==
*[[Keyboard shortcut]]
*[[Keyboard shortcut]]

*[https://www.informdecisions.com/ Document Automation]
== References ==
*[https://www.informdecisions.com/document-management/ Document Management]
{{Reflist}}


{{DEFAULTSORT:Accelerator Table}}
{{DEFAULTSORT:Accelerator Table}}

Revision as of 04:06, 28 January 2020

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, Ctrl+S is often used as a shortcut to the File→Save menu item, Ctrl+O 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.

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

References

  1. ^ "Accelerator Tables". microsoft.com. 2018-05-30. Retrieved 2020-01-27.
  2. ^ "Accelerator". electronjs.org. 2020-01-22. Retrieved 2020-01-27.