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

This commit is contained in:
pinkerton%netscape.com 2001-11-19 20:19:14 +00:00
Родитель 68bc6218a2
Коммит 37a0c77e8d
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

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