зеркало из https://github.com/mozilla/pjs.git
Fixed bug 46085. We were not firing the select event. r=mjudge.
This commit is contained in:
Родитель
a97131a8b2
Коммит
7486da3ec1
|
@ -5,6 +5,7 @@
|
|||
const short DRAG_REASON=1;
|
||||
const short MOUSEDOWN_REASON=2;/*bitflags*/
|
||||
const short MOUSEUP_REASON=4;/*bitflags*/
|
||||
const short KEYPRESS_REASON=8;/*bitflags*/
|
||||
|
||||
void notifySelectionChanged(in Document doc, in Selection sel, in short reason);
|
||||
};
|
||||
|
|
|
@ -42,7 +42,8 @@ public:
|
|||
NO_REASON = 0,
|
||||
DRAG_REASON = 1,
|
||||
MOUSEDOWN_REASON = 2,
|
||||
MOUSEUP_REASON = 4
|
||||
MOUSEUP_REASON = 4,
|
||||
KEYPRESS_REASON = 8
|
||||
};
|
||||
|
||||
NS_IMETHOD NotifySelectionChanged(nsIDOMDocument* aDoc, nsIDOMSelection* aSel, PRInt16 aReason)=0;
|
||||
|
|
|
@ -301,6 +301,9 @@ extern "C" NS_DOM nsresult NS_InitSelectionListenerClass(nsIScriptContext *aCont
|
|||
vp = INT_TO_JSVAL(nsIDOMSelectionListener::MOUSEUP_REASON);
|
||||
JS_SetProperty(jscontext, constructor, "MOUSEUP_REASON", &vp);
|
||||
|
||||
vp = INT_TO_JSVAL(nsIDOMSelectionListener::KEYPRESS_REASON);
|
||||
JS_SetProperty(jscontext, constructor, "KEYPRESS_REASON", &vp);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче