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

typeLongInteger
 

kEventParamTextInputReplyTextOffset

typeLongInteger

kEventShowHideBottomWindow

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
kEventGetSelectedText

kEventParamTextInputSendComponentInstance

typeComponentInstance
  kEventParamTextInputSendRefCon typeLongInteger
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.136.186