    return (renderWidgetHostView_->GetTextInputType() !=
                ui::TEXT_INPUT_TYPE_NONE &&
            [event type] == NSKeyDown &&
-@@ -3016,9 +3030,11 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged(
+@@ -3149,9 +3169,11 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged(
  // Since this implementation doesn't have to wait any IPC calls, this doesn't
  // make any key-typing jank. --hbono 7/23/09
  //

   // If we return |NO| from this function, cocoa will send the key event to
   // the menu and only if the menu does not process the event to |keyDown:|. We
   // want to send the event to a renderer _before_ sending it to the menu, so
@@ -2050,6 +2060,7 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged(
     DCHECK(![[NSApp mainMenu] performKeyEquivalent:theEvent]);
     return NO;
   }

   return [self acceptsMouseEventsWhenInactive];
 }
 
@@ -2066,6 +2081,7 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged(
   if (EventIsReservedBySystem(theEvent))
     return NO;
 
