Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
CTextInputEventHandler.h File Reference
#include <CarbonEvents.h>
#include <TextServices.h>
#include "nsIMacTextInputEventSink.h"
#include "CBrowserShell.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  CTextInputEventHandler


void InitializeTextInputEventHandling ()

Function Documentation

Definition at line 343 of file CTextInputEventHandling.cpp.

  static CTextInputEventHandler Singleton;
  EventTypeSpec eventTypes[5] = {
    {kEventClassTextInput, kEventTextInputUpdateActiveInputArea },
    {kEventClassTextInput, kEventTextInputUnicodeForKeyEvent },
    {kEventClassTextInput, kEventTextInputOffsetToPos },
    {kEventClassTextInput, kEventTextInputPosToOffset },
    {kEventClassTextInput, kEventTextInputGetSelectedText }
  EventHandlerUPP textInputUPP = NewEventHandlerUPP(TextInputHandler); 
  OSStatus err = InstallApplicationEventHandler( textInputUPP, 5, eventTypes, &Singleton, NULL);
  NS_ASSERTION(err==noErr, "Cannot install carbon event");

Here is the call graph for this function:

Here is the caller graph for this function: