From 37a0c77e8d5666fa4bd1df6bb32d5f9c3f5d7b03 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Mon, 19 Nov 2001 20:19:14 +0000 Subject: [PATCH] if we don't find the command in our table, don't return noErr from the event handler so things like plugins still get a crack at it. r=peterl/sr=sfraser. bug# 108835 --- widget/src/mac/nsMenuBarX.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/widget/src/mac/nsMenuBarX.cpp b/widget/src/mac/nsMenuBarX.cpp index 91581dbac26e..5a0dba436595 100644 --- a/widget/src/mac/nsMenuBarX.cpp +++ b/widget/src/mac/nsMenuBarX.cpp @@ -358,9 +358,10 @@ nsMenuBarX :: CommandEventHandler ( EventHandlerCallRef inHandlerChain, EventRef // nodes in the hash table. nsPRUint32Key key ( command.commandID ); nsIMenuItem* content = NS_REINTERPRET_CAST(nsIMenuItem*, self->mObserverTable.Get(&key)); - if ( content ) + if ( content ) { content->DoCommand(); - handled = noErr; + handled = noErr; + } break; }