| Index: ui/views/focus/focus_manager.cc
|
| diff --git a/ui/views/focus/focus_manager.cc b/ui/views/focus/focus_manager.cc
|
| index 3c2c8d7ebd6137bac7110795b25803bf68c5100f..6aa2cc40e691e0c91dc2c74b422b3b238b9f9113 100644
|
| --- a/ui/views/focus/focus_manager.cc
|
| +++ b/ui/views/focus/focus_manager.cc
|
| @@ -66,7 +66,7 @@ bool FocusManager::OnKeyEvent(const KeyEvent& event) {
|
| (event.flags() & ~ui::EF_ALT_DOWN) == 0) {
|
| // Trigger VKEY_MENU when only this key is pressed and released, and both
|
| // press and release events are not handled by others.
|
| - ui::Accelerator accelerator(ui::VKEY_MENU, ui::EF_NONE);
|
| + ui::Accelerator accelerator(ui::VKEY_MENU, ui::EF_NONE, ui::ET_KEY_PRESSED);
|
| return ProcessAccelerator(accelerator);
|
| } else if (event.type() != ui::ET_KEY_RELEASED) {
|
| return false;
|
| @@ -83,8 +83,7 @@ bool FocusManager::OnKeyEvent(const KeyEvent& event) {
|
| modifiers |= ui::EF_CONTROL_DOWN;
|
| if (event.IsAltDown())
|
| modifiers |= ui::EF_ALT_DOWN;
|
| - ui::Accelerator accelerator(event.key_code(), modifiers);
|
| - accelerator.set_type(event.type());
|
| + ui::Accelerator accelerator(event.key_code(), modifiers, event.type());
|
|
|
| if (event.type() == ui::ET_KEY_PRESSED) {
|
| #if defined(OS_WIN)
|
|
|