| Index: ui/base/accelerators/accelerator_manager.cc
|
| diff --git a/ui/base/accelerators/accelerator_manager.cc b/ui/base/accelerators/accelerator_manager.cc
|
| index 034593dfd0adad4809e046d0e0c4804930c5b8e0..4ab14b5fc15595789979a48f78fc7581dbd2563b 100644
|
| --- a/ui/base/accelerators/accelerator_manager.cc
|
| +++ b/ui/base/accelerators/accelerator_manager.cc
|
| @@ -119,18 +119,13 @@ bool AcceleratorManager::HasPriorityHandler(
|
| }
|
|
|
| bool AcceleratorManager::ShouldHandle(const Accelerator& accelerator) const {
|
| - if (accelerator.type() != ET_KEY_RELEASED &&
|
| - accelerator.type() != ET_TRANSLATED_KEY_RELEASE) {
|
| + if (accelerator.type() != ET_KEY_RELEASED)
|
| return true;
|
| - }
|
| +
|
| // This check is necessary e.g. not to process the Shift+Alt+ET_KEY_RELEASED
|
| // Accelerator for Chrome OS (see ash/accelerators/accelerator_controller.cc)
|
| // when Shift+Alt+Tab is pressed and then Tab is released.
|
| - if (last_event_type_ == ET_KEY_PRESSED ||
|
| - last_event_type_ == ET_TRANSLATED_KEY_PRESS) {
|
| - return true;
|
| - }
|
| - return false;
|
| + return last_event_type_ == ET_KEY_PRESSED;
|
| }
|
|
|
| } // namespace ui
|
|
|