Index: ui/aura/shared/input_method_event_filter.cc |
=================================================================== |
--- ui/aura/shared/input_method_event_filter.cc (revision 162597) |
+++ ui/aura/shared/input_method_event_filter.cc (working copy) |
@@ -51,7 +51,10 @@ |
// discarded so it's safe to update the target_root_window_ here. |
target_root_window_ = target->GetRootWindow(); |
DCHECK(target_root_window_); |
- input_method_->DispatchKeyEvent(event->native_event()); |
+ if (event->HasNativeEvent()) |
+ input_method_->DispatchKeyEvent(event->native_event()); |
+ else |
+ input_method_->DispatchFabricatedKeyEvent(*event); |
return true; |
} |
} |