summaryrefslogtreecommitdiffstats
path: root/views/ime
diff options
context:
space:
mode:
authorpenghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-16 17:38:11 +0000
committerpenghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-16 17:38:11 +0000
commit2f4436193ed444ef4d744dcb1c6f07aa308c7b00 (patch)
treef864c8cd7b44fc6e0f3a17f4be5243432429752c /views/ime
parent102c1b8d18405354dcb553b3a17d07e9f777452d (diff)
downloadchromium_src-2f4436193ed444ef4d744dcb1c6f07aa308c7b00.zip
chromium_src-2f4436193ed444ef4d744dcb1c6f07aa308c7b00.tar.gz
chromium_src-2f4436193ed444ef4d744dcb1c6f07aa308c7b00.tar.bz2
InputMethodIBus::IsActive should return true, if context_ is not NULL.
RHWVV will disable inpput method support in webkit by host_->SetInputMethodActive(false), if InputMethodIBus::IsActive() returns false. And then webkit will not notify chrome any change of input (RHWVV::ImeUpdateTextInputState() will not be called), and text_input_type_ will not be changed and the keyboard events will not be sent to ibus too. So ibus will not be enabled by keyboard events for ever. BUG=sometime input method does not work in web page TEST=manually Review URL: http://codereview.chromium.org/7013057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/ime')
-rw-r--r--views/ime/input_method_ibus.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/ime/input_method_ibus.cc b/views/ime/input_method_ibus.cc
index 406554e..19032ef 100644
--- a/views/ime/input_method_ibus.cc
+++ b/views/ime/input_method_ibus.cc
@@ -407,7 +407,7 @@ base::i18n::TextDirection InputMethodIBus::GetInputTextDirection() {
}
bool InputMethodIBus::IsActive() {
- return enabled_;
+ return context_ != NULL;
}
void InputMethodIBus::FocusedViewWillChange() {