TDataModule
is not a descendant of TCustomForm
, but rather of TComponent
. So a data module does not have a window handle to receive messages, and has no handling for shortcuts like TCustomForm
.
function TCustomForm.IsShortCut(var Message: TWMKey): Boolean;
function DispatchShortCut(const Owner: TComponent) : Boolean;
.....
.....