Don't store the keyboard info when reading the layout property fails
Reading the keyboard device layout property from udev might fail. When this happens, we used to store the keyboard info with a default layout value = Layout1. This CL avoid storing the keyboard info when a failure in udev is detected, we will still fallback to the default layout for the current key event, but we will attempt to re-read the layout property from udev on subsequent keys until a valid layout is returned. This eliminates the need to reboot the device to exit the bad state. BUG=783166 TEST=added new test. Change-Id: I94d6771ef955e20cee831ad0a93e31dcaaf8f610 Reviewed-on: https://chromium-review.googlesource.com/764444Reviewed-by:Dan Erat <derat@chromium.org> Commit-Queue: Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#516063}
Showing
Please register or sign in to comment