From f5a36619c2db62c9cb02ded2008f31002fbd7a07 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Wed, 6 Feb 2008 06:26:11 +0000 Subject: [PATCH] Cmd+Return no longer opens focused link in new tab, events getting sent to wrong widget. Also fixes embedding bug 415437. b=358379 r=masayuki sr=roc git-svn-id: svn://10.0.0.236/trunk@244976 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/cocoa/nsChildView.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/widget/src/cocoa/nsChildView.mm b/mozilla/widget/src/cocoa/nsChildView.mm index 8bd6c5b3092..2aaeccfc79b 100644 --- a/mozilla/widget/src/cocoa/nsChildView.mm +++ b/mozilla/widget/src/cocoa/nsChildView.mm @@ -4069,8 +4069,8 @@ static BOOL keyUpAlreadySentKeyDown = NO; if (!mGeckoChild) return YES; - // return 'NO' if we are in a transaction of IME. - if (nsTSMManager::IsComposing()) + // Return 'NO' if we are in a transaction of IME or we are not the first responder. + if (nsTSMManager::IsComposing() || [[self window] firstResponder] != self) return NO; // see if the menu system will handle the event