Index: chrome/browser/tab_contents/render_view_context_menu_mac.mm |
=================================================================== |
--- chrome/browser/tab_contents/render_view_context_menu_mac.mm (revision 81685) |
+++ chrome/browser/tab_contents/render_view_context_menu_mac.mm (working copy) |
@@ -9,6 +9,7 @@ |
#include "base/message_loop.h" |
#include "base/sys_string_conversions.h" |
#include "chrome/app/chrome_command_ids.h" |
+#import "chrome/browser/ui/cocoa/browser_window_controller.h" |
#import "chrome/browser/ui/cocoa/menu_controller.h" |
#include "grit/generated_resources.h" |
@@ -59,6 +60,11 @@ |
} |
} |
+void RenderViewContextMenuMac::ExecuteCommand(int id) { |
+ [[[parent_view_ window] windowController] commitInstant]; |
+ RenderViewContextMenu::ExecuteCommand(id); |
+} |
+ |
bool RenderViewContextMenuMac::GetAcceleratorForCommandId( |
int command_id, |
ui::Accelerator* accelerator) { |