Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: ui/aura/shared/input_method_event_filter.cc

Issue 11183049: Changes on the Input method for metro ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/ime/input_method.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « no previous file | ui/base/ime/input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698