| Index: ui/aura/test/ui_controls_factory_ozone.cc
|
| diff --git a/ui/aura/test/ui_controls_factory_ozone.cc b/ui/aura/test/ui_controls_factory_ozone.cc
|
| index 5179360e6fbe4754ac1ab3f1e6b51f4c3188ce8f..056a591792bc8b8e5a8a6d194b78de504cdbe37e 100644
|
| --- a/ui/aura/test/ui_controls_factory_ozone.cc
|
| +++ b/ui/aura/test/ui_controls_factory_ozone.cc
|
| @@ -55,6 +55,11 @@ class UIControlsOzone : public ui_controls::UIControlsAura {
|
| PostKeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_MENU, flags);
|
| }
|
|
|
| + if (command) {
|
| + flags |= ui::EF_COMMAND_DOWN;
|
| + PostKeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_LWIN, flags);
|
| + }
|
| +
|
| PostKeyEvent(ui::ET_KEY_PRESSED, key, flags);
|
| PostKeyEvent(ui::ET_KEY_RELEASED, key, flags);
|
|
|
| @@ -73,6 +78,11 @@ class UIControlsOzone : public ui_controls::UIControlsAura {
|
| PostKeyEvent(ui::ET_KEY_RELEASED, ui::VKEY_CONTROL, flags);
|
| }
|
|
|
| + if (command) {
|
| + flags &= ~ui::EF_COMMAND_DOWN;
|
| + PostKeyEvent(ui::ET_KEY_RELEASED, ui::VKEY_LWIN, flags);
|
| + }
|
| +
|
| RunClosureAfterAllPendingUIEvents(closure);
|
| return true;
|
| }
|
|
|