correctly implement nsIMenuListener.

git-svn-id: svn://10.0.0.236/trunk@22450 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com
1999-03-01 17:30:14 +00:00
parent 5a1bf02774
commit b3427e2a63
2 changed files with 8 additions and 1 deletions

View File

@@ -186,3 +186,9 @@ nsEventStatus nsXULCommand::MenuSelected(const nsMenuEvent & aMenuEvent)
return nsEventStatus_eConsumeNoDefault;
}
nsEventStatus nsXULCommand::MenuDeselected(const nsMenuEvent & aMenuEvent)
{
DoCommand();
return nsEventStatus_eConsumeNoDefault;
}

View File

@@ -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);