Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(884)

Issue 644783005: The DisplayVirtualKeyboard function on Windows 8 and beyond should not be displaying the OSK if a p… (Closed)

Created:
6 years, 2 months ago by ananta
Modified:
5 years, 10 months ago
CC:
chromium-reviews, wfh+watch_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

The 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -0 lines) Patch
M base/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 4 chunks +16 lines, -0 lines 0 comments Download
M base/win/win_util.cc View 1 2 3 4 5 4 chunks +62 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
ananta
6 years, 2 months ago (2014-10-16 00:54:35 UTC) #2
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/644783005/diff/1/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/644783005/diff/1/base/win/win_util.cc#newcode63 base/win/win_util.cc:63: bool IsKeyboardPresent() { please rename this to IsKeyboardPresentOnSlate() or ...
6 years, 2 months ago (2014-10-16 18:11:33 UTC) #4
scottmg
build files lgtm https://codereview.chromium.org/644783005/diff/1/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/644783005/diff/1/base/win/win_util.cc#newcode90 base/win/win_util.cc:90: bool has_keyboard = false; this is ...
6 years, 2 months ago (2014-10-16 18:30:46 UTC) #5
ananta
https://codereview.chromium.org/644783005/diff/1/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/644783005/diff/1/base/win/win_util.cc#newcode63 base/win/win_util.cc:63: bool IsKeyboardPresent() { On 2014/10/16 18:11:33, cpu wrote: > ...
6 years, 2 months ago (2014-10-16 19:35:59 UTC) #6
cpu_(ooo_6.6-7.5)
lgtm
6 years, 2 months ago (2014-10-17 18:18:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/644783005/40001
6 years, 2 months ago (2014-10-20 18:31:09 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/18706)
6 years, 2 months ago (2014-10-20 18:39:31 UTC) #11
ananta
+thestig for base build changes and owners stamp
6 years, 2 months ago (2014-10-20 21:35:42 UTC) #13
Lei Zhang
lgtm with some nitty gritty comments. https://codereview.chromium.org/644783005/diff/60001/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/644783005/diff/60001/base/win/win_util.cc#newcode65 base/win/win_util.cc:65: if (base::win::GetVersion() < ...
6 years, 2 months ago (2014-10-20 21:53:15 UTC) #14
ananta
https://codereview.chromium.org/644783005/diff/60001/base/win/win_util.cc File base/win/win_util.cc (right): https://codereview.chromium.org/644783005/diff/60001/base/win/win_util.cc#newcode65 base/win/win_util.cc:65: if (base::win::GetVersion() < base::win::VERSION_WIN8) { On 2014/10/20 21:53:15, Lei ...
6 years, 2 months ago (2014-10-20 22:00:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/644783005/100001
6 years, 2 months ago (2014-10-20 22:08:47 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 2 months ago (2014-10-21 00:15:10 UTC) #18
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/74ca738f038557de0e53fd91a8d15774da36f85a Cr-Commit-Position: refs/heads/master@{#300383}
6 years, 2 months ago (2014-10-21 00:15:53 UTC) #19
iueweb.webmanager
On 2014/10/21 00:15:53, I haz the power (commit-bot) wrote: > Patchset 6 (id:??) landed as ...
5 years, 10 months ago (2015-01-26 15:33:27 UTC) #20
Lei Zhang
5 years, 10 months ago (2015-01-26 20:09:45 UTC) #21
Message was sent while issue was closed.
On 2015/01/26 15:33:27, iueweb.webmanager wrote:
> On 2014/10/21 00:15:53, I haz the power (commit-bot) wrote:
> > Patchset 6 (id:??) landed as
> > https://crrev.com/74ca738f038557de0e53fd91a8d15774da36f85a
> > Cr-Commit-Position: refs/heads/master@{#300383}
> 
> Please re-open this bug or re-examine fix if possible; there are still people,
> myself included, experiencing the OSK popping up with external keyboard
attached
> (see https://code.google.com/p/chromium/issues/detail?id=335735).  I'm on a
> Surface Pro 3, Chrome version 40.0.2214.91 m.  Thanks for any help!

The bug you referenced is open. You already commented on the bug. Further
comments outside of the bug tracker is not helpful.

Powered by Google App Engine
This is Rietveld 408576698