Index: content/browser/renderer_host/render_widget_host_view_aura.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc |
index 4a0cab73b776e599d9f5dddca260ab5b2eb92c26..f6a1215751cbb781709c6c8c31e07e145a13c70c 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
@@ -646,6 +646,7 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host) |
popup_child_host_view_(NULL), |
is_loading_(false), |
text_input_type_(ui::TEXT_INPUT_TYPE_NONE), |
+ text_input_mode_(ui::TEXT_INPUT_MODE_DEFAULT), |
can_compose_inline_(true), |
has_composition_text_(false), |
last_swapped_surface_scale_factor_(1.f), |
@@ -1042,8 +1043,10 @@ void RenderWidgetHostViewAura::TextInputTypeChanged( |
bool can_compose_inline, |
ui::TextInputMode input_mode) { |
if (text_input_type_ != type || |
+ text_input_mode_ != input_mode || |
can_compose_inline_ != can_compose_inline) { |
text_input_type_ = type; |
+ text_input_mode_ = input_mode; |
can_compose_inline_ = can_compose_inline; |
if (GetInputMethod()) |
GetInputMethod()->OnTextInputTypeChanged(this); |
@@ -2183,7 +2186,7 @@ ui::TextInputType RenderWidgetHostViewAura::GetTextInputType() const { |
} |
ui::TextInputMode RenderWidgetHostViewAura::GetTextInputMode() const { |
- return ui::TEXT_INPUT_MODE_DEFAULT; |
+ return text_input_mode_; |
} |
bool RenderWidgetHostViewAura::CanComposeInline() const { |