Index: ash/accelerators/accelerator_controller.cc |
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc |
index 8a7b4cfa32a6440833a946db0770023d00d1a7d5..089c1a647146aae8ef0c5b1da3f29c0e4e9b080a 100644 |
--- a/ash/accelerators/accelerator_controller.cc |
+++ b/ash/accelerators/accelerator_controller.cc |
@@ -556,9 +556,11 @@ bool AcceleratorController::PerformAction(int action, |
// We totally ignore this accelerator. |
return false; |
} |
- if (shell->caps_lock_delegate()->IsCapsLockEnabled()) |
+ if (shell->caps_lock_delegate()->IsCapsLockEnabled()) { |
shell->caps_lock_delegate()->SetCapsLockEnabled(false); |
- return true; |
+ return true; |
+ } |
+ return false; |
case TOGGLE_CAPS_LOCK: |
shell->caps_lock_delegate()->ToggleCapsLock(); |
return true; |