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:
Binary file not shown.
@@ -19,3 +19,6 @@ nsIDOMPaintListener.h
|
||||
nsIDOMEventTarget.h
|
||||
nsIDOMTextListener.h
|
||||
nsIDOMCompositionListener.h
|
||||
nsIDOMTextRange.h
|
||||
nsIDOMTextRangeList.h
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user