diff --git a/atom/browser/api/atom_api_menu.cc b/atom/browser/api/atom_api_menu.cc
index 996c71739bc..c9cd37522b8 100644
--- a/atom/browser/api/atom_api_menu.cc
+++ b/atom/browser/api/atom_api_menu.cc
@@ -61,8 +61,10 @@ bool Menu::GetAcceleratorForCommandId(int command_id,
return mate::ConvertFromV8(isolate(), val, accelerator);
}
-void Menu::ExecuteCommand(int command_id, int event_flags) {
- execute_command_.Run(command_id);
+void Menu::ExecuteCommand(int command_id, int flags) {
+ execute_command_.Run(
+ mate::internal::CreateEventFromFlags(isolate(), flags),
+ command_id);
}
void Menu::MenuWillShow(ui::SimpleMenuModel* source) {
diff --git a/atom/browser/api/atom_api_menu.h b/atom/browser/api/atom_api_menu.h
index 9ba4d7a754c..53c6bdaf4ec 100644
--- a/atom/browser/api/atom_api_menu.h
+++ b/atom/browser/api/atom_api_menu.h
@@ -90,7 +90,7 @@ class Menu : public mate::TrackableObject