зеркало из https://github.com/mozilla/pjs.git
correctly implement nsIMenuListener.
This commit is contained in:
Родитель
36fa7b8ce3
Коммит
fdeb49680f
|
@ -186,3 +186,9 @@ nsEventStatus nsXULCommand::MenuSelected(const nsMenuEvent & aMenuEvent)
|
|||
return nsEventStatus_eConsumeNoDefault;
|
||||
}
|
||||
|
||||
nsEventStatus nsXULCommand::MenuDeselected(const nsMenuEvent & aMenuEvent)
|
||||
{
|
||||
DoCommand();
|
||||
return nsEventStatus_eConsumeNoDefault;
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class nsIDOMEvent;
|
|||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
class nsXULCommand : public nsIXULCommand //public nsIMenuListener
|
||||
class nsXULCommand : public nsIXULCommand
|
||||
|
||||
{
|
||||
public:
|
||||
|
@ -58,6 +58,7 @@ public:
|
|||
|
||||
// nsIMenuListener
|
||||
virtual nsEventStatus MenuSelected(const nsMenuEvent & aMenuEvent);
|
||||
virtual nsEventStatus MenuDeselected(const nsMenuEvent & aMenuEvent) ;
|
||||
|
||||
protected:
|
||||
NS_IMETHOD ExecuteJavaScriptString(nsIWebShell* aWebShell, nsString& aJavaScript);
|
||||
|
|
Загрузка…
Ссылка в новой задаче