Index: ui/views/controls/menu/menu_controller.cc |
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc |
index ec467ec8c14a51904d77aa41cba2509957c118ca..59ac22a662e1f5a6e9dd21e6e1d428773d53de1e 100644 |
--- a/ui/views/controls/menu/menu_controller.cc |
+++ b/ui/views/controls/menu/menu_controller.cc |
@@ -934,13 +934,14 @@ void MenuController::SetSelectionOnPointerDown(SubmenuView* source, |
} |
Cancel(exit_type); |
-#if !defined(OS_WIN) |
+#if defined(OS_CHROMEOS) |
// We're going to exit the menu and want to repost the event so that is |
// is handled normally after the context menu has exited. We call |
// RepostEvent after Cancel so that mouse capture has been released so |
// that finding the event target is unaffected by the current capture. |
RepostEvent(source, event); |
#endif |
+ // Do not repost events for Linux Aura. |
sky
2014/03/19 15:36:15
Can you document why we don't need to repost?
|
sky
2014/03/19 15:36:15
nit: remove this empty line.
|
return; |
} |