remoting: Windows keyboard layout fixes.
On Windows, ToUnicodeEx returns ASCII control characters for certain functional keys. E.g., escape returns 0x1B. This change translates such control characters to the corresponding key function instead of reporting the keys as (unprintable) chacter-generating keys in the layout. In addition, this change checks for known, possibly redundant keys and removes them for a cleaner layout. E.g., if Backslash and IntlBackslash happen to generate the exact same characters for the current layout, only Backslash will be included in the layout sent to the client. Bug: 1026029 Change-Id: Ia261e5ca3baa86b16bba7a4bc6926b5d81c33c85 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1975296 Commit-Queue: Erik Jensen <rkjnsn@chromium.org> Reviewed-by:Gary Kacmarcik <garykac@chromium.org> Cr-Commit-Position: refs/heads/master@{#729874}
Showing
Please register or sign in to comment