correctly implement nsIMenuListener.
git-svn-id: svn://10.0.0.236/trunk@22450 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user