Commit 0e7dde90 authored by Tetsui Ohkubo's avatar Tetsui Ohkubo Committed by Commit Bot

arc: ime: Fix RequestHideIme condition check.

The condition in ArcImeService::RequestHideIme() didn't properly
recognize if ARC++ window is focused.

TEST=manual
BUG=b/65635084

Change-Id: Ia8edb44af403e2ddafad17fbae90704919ffb21c
Reviewed-on: https://chromium-review.googlesource.com/c/1343470Reviewed-by: default avatarYuichiro Hanada <yhanada@chromium.org>
Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609615}
parent 4a1fe233
...@@ -323,8 +323,7 @@ void ArcImeService::OnCursorRectChangedWithSurroundingText( ...@@ -323,8 +323,7 @@ void ArcImeService::OnCursorRectChangedWithSurroundingText(
void ArcImeService::RequestHideIme() { void ArcImeService::RequestHideIme() {
// Ignore the request when the ARC app is not focused. // Ignore the request when the ARC app is not focused.
ui::InputMethod* const input_method = GetInputMethod(); if (!focused_arc_window_)
if (!input_method || input_method->GetTextInputClient() != nullptr)
return; return;
// TODO(mash): Support virtual keyboard under MASH. There is no // TODO(mash): Support virtual keyboard under MASH. There is no
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment