[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'ActnList' (#lcl)

# TShortCutList

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

A list of shortcuts (accelerator keys) for actions in an action list.

## Declaration

Source position: actnlist.pas line 135

`type TShortCutList = class(TStringList)`
`public`
`function Add(); override;` |  | Adds a shortcut with the specified text to the list.
`function IndexOfShortCut();` |  | Gets the ordinal position in the list for the specified TShortCut class instance.
`property ShortCuts []: TShortCut; [r]` |  | Provides indexed, read-only access to the TShortCut instances in the list by their ordinal position.
`end;`

## Inheritance

`TShortCutList` |  | A list of shortcuts (accelerator keys) for actions in an action list.
`TStringList`
?
`TObject`

## Description

TShortCutList is a TStringList descendant used to store text and TShortCut class instances for accelerator keys used on actions. It provides additional properties and methods needed to maintain the TShortCut instances in the list.

The overridden Add method stores both the caption text and a TShortCut instance needed for an accelerator key. The caption is stored in the Lines property. The Objects property is used to store the TShortCut value.

Use the indexed ShortCuts property to access a TShortCut value in Objects by its ordinal position.

TShortCutList is the type used to implement the SecondaryShortCuts property in TCustomAction.

## See also

TCustomAction.SecondaryShortCuts |  | SecondaryShortCuts - a stringlist containing shortcuts.
TShortCut