if we send a gecko event into gecko from performKeyEvent, assume it was handled despite any return value. b=376077 r=masayuki sr=roc

This commit is contained in:
joshmoz%gmail.com 2007-12-05 00:08:33 +00:00
Родитель 9620615b79
Коммит 5b45b77b09
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -4106,7 +4106,11 @@ static BOOL keyUpAlreadySentKeyDown = NO;
ConvertCocoaKeyEventToMacEvent(theEvent, macEvent);
geckoEvent.nativeMsg = &macEvent;
return (BOOL)mGeckoChild->DispatchWindowEvent(geckoEvent);
mGeckoChild->DispatchWindowEvent(geckoEvent);
// We always return YES here because we can't know for sure if Gecko
// handled the event, even with the return value for the event dispatch.
return YES;
}