• Erik Jensen's avatar
    remoting: Windows keyboard layout fixes. · 34caf367
    Erik Jensen authored
    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: default avatarGary Kacmarcik <garykac@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#729874}
    34caf367
keyboard_layout_monitor_win.cc 23.3 KB