Sign in Join
FPDoc Onlineexperiment

TCustomForm.OnShortcut property

Member of TCustomFormpublicIn unit Forms

Event handler signalled when a key is pressed, before further handling of the key.

Declaration

pascal
property OnShortcut: TShortCutEvent read FOnShortcut write FOnShortcut;

Description

OnShortcut is a TShortcutEvent property that represents the event handler signalled (when assigned) to detect and handle a shortcut key for the form instance. OnShortcut is called from the IsShortcut method used to examine keystroke events intercepted and forwarded by the Application.

The Msg argument contains the key event examined in the handler. Handled indicates that the key is handled by the event when set to True.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.