DescriptionThe DisplayVirtualKeyboard function on Windows 8 and beyond should not be displaying the OSK if a physical keyboard is attached to the machine.
Added a function IsKeyboardPresent locally to win_util.cc which uses the setup API's to enumerate
keyboard devices and check for the common ones like ACPI\PNP and HID\VID. This function returns
true if the number of keyboards is greater than 1. This is a hacky approach and is being done
for lack of a good way to determine the presence of a keyboard. The documented methods don't work
well.
BUG=335735
Committed: https://crrev.com/74ca738f038557de0e53fd91a8d15774da36f85a
Cr-Commit-Position: refs/heads/master@{#300383}
Patch Set 1 #
Total comments: 18
Patch Set 2 : Code review comments from scottmg and cpu and build errors #Patch Set 3 : Fixed String comparison #Patch Set 4 : Fixed views_unittests #
Total comments: 6
Patch Set 5 : Code review comments #Patch Set 6 : Fix build error #
Messages
Total messages: 21 (6 generated)
|