Carbon


ControlKeyDownRec

Header: Controls.h

struct ControlKeyDownRec {
    EventModifiers modifiers; 
    SInt16 keyCode; 
    SInt16 charCode;
};
typedef ControlKeyDownRec ControlKeyDownPtr;

Field descriptions

modifiers

The constant in the modifiers field of the event structure specifying the state of the modifier keys and the mouse button at the time the event was posted.

keyCode

The virtual key code derived from the event structure. This value represents the key pressed or released by the user. It is always the same for a specific physical key on a particular keyboard regardless of which modifier keys were also pressed.

charCode

A particular character derived from the event structure. This value depends on the virtual key code, the state of the modifier keys, and the current 'KCHR' resource.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)