Index: ash/host/ash_window_tree_host_unified.cc |
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc |
index 7e78691629dee29c94c9ff5c4af288bb2771f48c..2759af6d1332e6fbc73cfe989cd27011b2c7c3ff 100644 |
--- a/ash/host/ash_window_tree_host_unified.cc |
+++ b/ash/host/ash_window_tree_host_unified.cc |
@@ -177,16 +177,14 @@ void AshWindowTreeHostUnified::OnWindowDestroying(aura::Window* window) { |
mirroring_hosts_.erase(iter); |
} |
-bool AshWindowTreeHostUnified::DispatchKeyEventPostIME( |
- const ui::KeyEvent& event) { |
- ui::KeyEvent event_copy(event); |
+ui::EventDispatchDetails AshWindowTreeHostUnified::DispatchKeyEventPostIME( |
+ ui::KeyEvent* event) { |
input_method_handler()->SetPostIME(true); |
ui::EventDispatchDetails details = |
- event_processor()->OnEventFromSource(&event_copy); |
- if (details.dispatcher_destroyed) |
- return true; |
- input_method_handler()->SetPostIME(false); |
- return event_copy.stopped_propagation(); |
+ event_processor()->OnEventFromSource(event); |
+ if (!details.dispatcher_destroyed) |
+ input_method_handler()->SetPostIME(false); |
+ return details; |
} |
} // namespace ash |