Added clause range and selection support for Input Methods.

git-svn-id: svn://10.0.0.236/trunk@37434 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tague%netscape.com
1999-06-29 20:30:42 +00:00
parent 478c08520e
commit db23dd7d5c
5 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@@ -19,3 +19,6 @@ nsIDOMPaintListener.h
nsIDOMEventTarget.h
nsIDOMTextListener.h
nsIDOMCompositionListener.h
nsIDOMTextRange.h
nsIDOMTextRangeList.h

Binary file not shown.

Binary file not shown.

View File

@@ -1275,7 +1275,12 @@ PRBool nsMacEventHandler::HandleTextEvent(void)
textEvent.point.y = 0;
textEvent.time = PR_IntervalNow();
textEvent.theText = mIMECompositionString;
textEvent.rangeCount = 1;
textEvent.rangeArray = new nsTextRange[1];
textEvent.rangeArray[0].mStartOffset = 0;
textEvent.rangeArray[0].mEndOffset = 1;
textEvent.rangeArray[0].mRangeType = 0x01;
//
// nsGUIEvent parts
//