Thotkey Component Properties
Bidimode
Set this property to specify the bidirectional mode of text, control the order of the read text, and position the vertical scroll bar. Alignment does not change the number, date, time, and current value that the component contains.
HotKey
Use this property to set or change hotkey-related key combinations, such as alt+a as the default value
Invalidkeys
Invalid key combination
Modifiers
To modify a key combination
Parentbidimode
Sets whether the component uses the parent component Bidimode property
Example
Modify the default value of the hotkey.
procedure Tform1.newctrla1click (sender:tobject); var new:tmenuitem;begin NEW. ShortCut:=hotkey1.hotkey;end;procedure tform1.formcreate (sender:tobject); Begin Hotkey1.modifiers: =[Hkshift,hkctrl]; Hotkey1.invalidkeys:=[Hcalt];end;end.
Delphi Hotkey Component (Thotkey)