Chromium Code Reviews| Index: ash/accelerators/accelerator_controller.cc |
| diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc |
| index fbe39d16a2bef57acd9b520adb457ee134d8c662..4c8bc96765d6d804f50e476d1eabcbcd8e1aa0fd 100644 |
| --- a/ash/accelerators/accelerator_controller.cc |
| +++ b/ash/accelerators/accelerator_controller.cc |
| @@ -583,6 +583,14 @@ bool AcceleratorController::PerformAction(int action, |
| } |
| return false; |
| case TOGGLE_CAPS_LOCK: |
| + if (key_code == ui::VKEY_LWIN) { |
| + // If something else was pressed between the Search key (LWIN) |
| + // being pressed and released, then ignore the release of the |
| + // Search key. |
|
mazda
2012/12/17 21:41:54
nit: Please add a comment on http://crbug.com/1664
danakj
2012/12/17 21:48:02
Done.
|
| + if (previous_event_type == ui::ET_KEY_RELEASED || |
| + previous_key_code != ui::VKEY_LWIN) |
| + return false; |
| + } |
| shell->caps_lock_delegate()->ToggleCapsLock(); |
| return true; |
| case BRIGHTNESS_DOWN: |