Commit 2eb89f84 authored by penghuang's avatar penghuang Committed by Commit bot

Fix a crash when typing in a exo window.

The exo is used on ChromeOS, it doesn't expect char event. The
InputMethodBridgeChromeOS should filters out char events.

BUG=None

Review-Url: https://codereview.chromium.org/2576973003
Cr-Commit-Position: refs/heads/master@{#438904}
parent 5326d7e4
......@@ -39,7 +39,11 @@ void InputMethodBridge::ProcessKeyEvent(
input_method_chromeos_->DispatchKeyEvent(
key_event, base::MakeUnique<base::Callback<void(bool)>>(callback));
} else {
callback.Run(false);
// On Linux (include ChromeOS), the mus emulates the WM_CHAR generation
// behaviour of Windows. But for ChromeOS, we don't expect those char
// events, so we filter them out.
const bool handled = true;
callback.Run(handled);
}
}
......
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