AdditionalShortCuts: IShortCutCollection;
The AdditionalShortCuts property returns the collection of the additional combinations of hot keys that are connected with this action.
In object inspector the special editor is implemented for this property. After the cursor has been set in the editor, all key pressings and key combinations should be captured automatically. Pressed keys and key combinations should be set as the additional "hot keys" for this action. The following keys are ignored in this editor:
BackSpace is used to remove the set combination of hot keys.
The Left Arrow/Right Arrow keys are used to navigate between the set hot keys.
The combinations of hot keys are separated by ";" character in the list.
Executing the example requires a form, a button named Button1 on it and the ActionList component that contains different actions related with main menu items and buttons of toolbars.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
SCCollect: IShortCutCollection;
Begin
ActionItem1.ShortCut := MakeShortcut(KeyModifiers.Ctrl, Keys.C);
SCCollect := ActionItem1.AdditionalShortCuts;
SCCollect.Add(MakeShortcut(KeyModifiers.Ctrl, Keys.Insert));
End Sub Button1OnClick;
After executing the example pressing the button assigns two combinations of hot keys for the ActionItem1 action. The first combination is set in the ShortCut main property, the second one is added to the collection of additional combinations of hot keys.
See also: