summaryrefslogtreecommitdiffstats
path: root/athena/input/accelerator_manager_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'athena/input/accelerator_manager_impl.cc')
-rw-r--r--athena/input/accelerator_manager_impl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/athena/input/accelerator_manager_impl.cc b/athena/input/accelerator_manager_impl.cc
index ad03023..c1e037a 100644
--- a/athena/input/accelerator_manager_impl.cc
+++ b/athena/input/accelerator_manager_impl.cc
@@ -262,7 +262,8 @@ void AcceleratorManagerImpl::Init() {
new AcceleratorDelegate(this));
accelerator_filter_.reset(
- new wm::AcceleratorFilter(accelerator_delegate.Pass()));
+ new wm::AcceleratorFilter(accelerator_delegate.Pass(),
+ accelerator_history_.get()));
toplevel->AddPreTargetHandler(accelerator_filter_.get());
}
@@ -289,6 +290,7 @@ AcceleratorManagerImpl::AcceleratorManagerImpl(
AcceleratorWrapper* accelerator_wrapper,
bool global)
: accelerator_wrapper_(accelerator_wrapper),
+ accelerator_history_(new ui::AcceleratorHistory),
debug_accelerators_enabled_(switches::IsDebugAcceleratorsEnabled()),
global_(global) {
}