Change VKEY_MENU to VKEY_LMENU in interactive ui tests key sequence sending.
On windows depending on system/keyboard setting right alt (alt gr) can be seen as alt+ctrl. This is also true for sending VKEY_MENU via SendInput, probably because it is treated as any alt key. To avoid intorducing unwanted ctrl key in sequence use VKEY_LMENU which will only add alt key without a risk of adding ctrl key regardless of system setup. The change fixes CommandsApiTest.DontOverwriteSystemShortcuts test timout. Test expected alt+shift+f, but what was received was ctrl+alt+shift+f. BUG=409567 Review URL: https://codereview.chromium.org/526063002 Cr-Commit-Position: refs/heads/master@{#293112}
Showing
Please register or sign in to comment