Index: ui/views/cocoa/bridged_content_view.mm |
diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm |
index 3a3e83962f17744628618a60069066f79731fb5e..0a4b25796790c6c0aa92350d1710839250849c42 100644 |
--- a/ui/views/cocoa/bridged_content_view.mm |
+++ b/ui/views/cocoa/bridged_content_view.mm |
@@ -172,7 +172,7 @@ bool DispatchEventToMenu(views::Widget* widget, ui::KeyboardCode key_code) { |
if (DispatchEventToMenu(hostedView_->GetWidget(), event.key_code())) |
return; |
- hostedView_->GetWidget()->GetInputMethod()->DispatchKeyEvent(event); |
+ hostedView_->GetWidget()->GetInputMethod()->DispatchKeyEvent(&event); |
} |
- (void)handleAction:(int)commandId |
@@ -193,7 +193,7 @@ bool DispatchEventToMenu(views::Widget* widget, ui::KeyboardCode key_code) { |
// Generate a synthetic event with the keycode toolkit-views expects. |
ui::KeyEvent event(ui::ET_KEY_PRESSED, keyCode, domCode, eventFlags); |
- hostedView_->GetWidget()->GetInputMethod()->DispatchKeyEvent(event); |
+ hostedView_->GetWidget()->GetInputMethod()->DispatchKeyEvent(&event); |
} |
- (void)undo:(id)sender { |