The TF_MOD_* constants specify key modifiers in the TF_PRESERVEDKEY structure.
Constant/value
Description
TF_MOD_ALT
0x0001
Either of the ALT keys is pressed
TF_MOD_CONTROL
0x0002
Either of the CTRL keys is pressed
TF_MOD_SHIFT
0x0004
Either of the SHIFT keys is pressed
TF_MOD_RALT
0x0008
The right ALT key is pressed
TF_MOD_RCONTROL
0x0010
The right CTRL key is pressed
TF_MOD_RSHIFT
0x0020
The right SHIFT key is pressed
TF_MOD_LALT
0x0040
The left ALT key is pressed
TF_MOD_LCONTROL
0x0080
The left CTRL key is pressed
TF_MOD_LSHIFT
0x0100
The left SHIFT key is pressed
TF_MOD_ON_KEYUP
0x0200
The event will be fired when the key is released. Without this flag, the event is fired when the key is pressed.
TF_MOD_IGNORE_ALL_MODIFIER
0x0400
The state of the ALT, CTRL, and SHIFT keys is ignored. This means the event will be fired when the virtual key is pressed, regardless of which modifier keys are pressed.