Text Input Events

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 kindParameter nameParameter type

kEventUpdateActiveInputArea

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
  kEventParamTextInputSendSLRec typeIntlWritingCode
  kEventParamTextInputSendFixLen typeLongInteger
  kEventParamTextInputSendText

typeUnicodeText for a Unicode document; typeChar otherwise

kEventUnicodeForKeyEvent

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
  kEventParamTextInputSendSLRec typeIntlWritingCode
  kEventParamTextInputSendText typeUnicodeText
 

kEventParamTextInputSendKeyboardEvent

typeEventRef
kEventOffsetToPos

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
 

kEventParamTextInputSendTextOffset

typeLongInteger
  kEventParamTextInputReplyPoint typeQDPoint
kEventPosToOffset

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
 

kEventParamTextInputSendCurrentPoint

typeQDPoint
 

kEventParamTextInputReplyRegionClass ...

Get Learning Carbon now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.