summaryrefslogtreecommitdiffstats
path: root/ash/accelerators/accelerator_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/accelerators/accelerator_delegate.cc')
-rw-r--r--ash/accelerators/accelerator_delegate.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/accelerators/accelerator_delegate.cc b/ash/accelerators/accelerator_delegate.cc
index bcdc75e..e815881 100644
--- a/ash/accelerators/accelerator_delegate.cc
+++ b/ash/accelerators/accelerator_delegate.cc
@@ -51,6 +51,11 @@ bool AcceleratorDelegate::CanConsumeSystemKeys(const ui::KeyEvent& event) {
bool AcceleratorDelegate::ShouldProcessAcceleratorNow(
const ui::KeyEvent& event,
const ui::Accelerator& accelerator) {
+ // On ChromeOS, If the accelerator is Search+<key(s)> then it must never be
+ // intercepted by apps or windows.
+ if (accelerator.IsCmdDown())
+ return true;
+
aura::Window* target = static_cast<aura::Window*>(event.target());
DCHECK(target);