arc: Fall back to use scancode if key_code is not available.
The proxy IME in Android sometimes fail to find the appropriate KeyboardCode for a Android's KEYCODE. The proxy IME uses ui::VKEY_UNKNOWN for the key event. However, it's rejected in a validation code and the mojo connection is closed as a result. This CL adds a new optional field in KeyEventData struct for a scan code of a key event. The field will be used when the proxy IME fails to find the appropriate KeyboardCode. Bug: b:174259561 Test: component_unittests Change-Id: If4cf5514bdb6cc7026964025e42e4ae6bc3e57b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2567141 Commit-Queue: Yuichiro Hanada <yhanada@chromium.org> Reviewed-by:Jorge Lucangeli Obes <jorgelo@chromium.org> Reviewed-by:
Tetsui Ohkubo <tetsui@chromium.org> Cr-Commit-Position: refs/heads/master@{#833105}
Showing
Please register or sign in to comment