| 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 0fcb4b3ef2e7dd818075f9854e8e85cd5ea27298..2e36150d07837bf49ba22f420a9e309fc732b6b7 100644
|
| --- a/ash/host/ash_window_tree_host_unified.cc
|
| +++ b/ash/host/ash_window_tree_host_unified.cc
|
| @@ -182,16 +182,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
|
|
|