![]() |
TXNKeyDown |
||||
Header: | MacTextEditor.h | Carbon status: | Supported | |
Processes a key-down event.
void TXNKeyDown ( TXNObject iTXNObject, const EventRecord *iEvent );
A variable of type TXNObject. Pass the text object that identifies the active document.
A pointer to the event record that contains the key-down event you want handled. You cannot pass NULL.
Before you call the TXNKeyDown function, you should make sure that the front window belongs to your application. If a Chinese, Japanese, or Korean (CJK) scripts is installed and the current font is Chinese, Japanese, or Korean, text input occurs in the text objects window. This is always the case unless the application has requested text input through a bottom-line window (a small window that appears at the bottom of the screen) or has turned off the Text Services Manager (TSM). You can turn TSM on or off when you call the TXNInitTextension function, but you should turn off TSM only if you are using QuickDraw with Unicode to increase the speed of you application.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)