зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
68bc6218a2
Коммит
37a0c77e8d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче