Sign in Join
FPDoc Onlineexperiment

ShortCut function

In unit Menus

Converts a virtual key code and modifier to a shortcut value.

Declaration

pascal
function ShortCut(const Key: Word; const Shift: TShiftState): TShortCut

Arguments

Key

Virtual key code for the shortcut value.

Shift

Shift, Alt, or Ctrl modifier for the shortcut value.

Function result

TShortCut type with the value for the key and modifier.

Description

Calls the KeyToShortCut routine in LCLType get the return value for the function.

See also

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