summaryrefslogtreecommitdiffstats
path: root/ash/accelerators/accelerator_dispatcher_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/accelerators/accelerator_dispatcher_win.cc')
-rw-r--r--ash/accelerators/accelerator_dispatcher_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/accelerators/accelerator_dispatcher_win.cc b/ash/accelerators/accelerator_dispatcher_win.cc
index 8a64f6c..2aeceda 100644
--- a/ash/accelerators/accelerator_dispatcher_win.cc
+++ b/ash/accelerators/accelerator_dispatcher_win.cc
@@ -6,6 +6,7 @@
#include "ash/accelerators/accelerator_controller.h"
#include "ash/shell.h"
+#include "ui/aura/env.h"
#include "ui/aura/event.h"
#include "ui/aura/root_window.h"
#include "ui/base/accelerators/accelerator.h"
@@ -23,7 +24,7 @@ bool AcceleratorDispatcher::Dispatch(const MSG& msg) {
if (!associated_window_)
return false;
if (!associated_window_->CanReceiveEvents())
- return Shell::GetRootWindow()->GetDispatcher()->Dispatch(msg);
+ return aura::Env::GetInstance()->GetDispatcher()->Dispatch(msg);
if(msg.message == WM_KEYDOWN || msg.message == WM_SYSKEYDOWN) {
ash::AcceleratorController* accelerator_controller =