Text input events are generated in response to text input handled by the Text Services Manager. These events typically correspond to actions taken by a text input method, rather than raw keystrokes, although some of the parameters allow you to extract individual characters.
Table C-6. Required Parameter Names and Types for Text Input Event Kinds
Event kind | Parameter name | Parameter type |
---|---|---|
|
|
typeComponentInstance
|
kEventParamTextInputSendRefCon
|
typeLongInteger
| |
kEventParamTextInputSendSLRec
|
typeIntlWritingCode
| |
kEventParamTextInputSendFixLen
|
typeLongInteger
| |
kEventParamTextInputSendText
|
| |
|
|
typeComponentInstance
|
kEventParamTextInputSendRefCon
|
typeLongInteger
| |
kEventParamTextInputSendSLRec
|
typeIntlWritingCode
| |
kEventParamTextInputSendText
|
typeUnicodeText
| |
|
typeEventRef
| |
kEventOffsetToPos
|
|
typeComponentInstance
|
kEventParamTextInputSendRefCon
|
typeLongInteger
| |
|
typeLongInteger
| |
kEventParamTextInputReplyPoint
|
typeQDPoint
| |
kEventPosToOffset
|
|
typeComponentInstance
|
kEventParamTextInputSendRefCon
|
typeLongInteger
| |
|
typeQDPoint
| |
|
typeLongInteger
| |
|
typeLongInteger
| |
|
|
typeComponentInstance
|
kEventParamTextInputSendRefCon
|
typeLongInteger
| |
kEventGetSelectedText
|
|
typeComponentInstance
|
kEventParamTextInputSendRefCon
|
typeLongInteger
|