RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAction.HandleShortCut Method

Executes the action when the user types on of its short cuts.

Pascal
function HandleShortCut: Boolean; virtual;
C++
virtual __fastcall Boolean HandleShortCut();

Applications can't call the protected HandleShortCut method. The action list's IsShortCut method calls HandleShortCut when it finds a match between a shortcut key combination and the action's ShortCut or SecondaryShortCuts property. 

As implemented in TCustomAction, HandleShortCut calls Execute to cause the action to perform its function. HandleShortCut returns the value that Execute returns.  

Descendant classes can override HandleShortCut to respond in other ways when the user types the action's shortcut keys. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!