Enable options to remap CapsLock whenever an external keyboard is connected.
commitdf45c0b5db1a68a59ee5c7a64a522f6d2de67b39
authorafakhry <afakhry@chromium.org>
Tue, 16 Jun 2015 02:54:14 +0000 (15 19:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Jun 2015 02:55:04 +0000 (16 02:55 +0000)
tree27122d550a08d94303d9d20e8d044796643b5c16
parent1c7d9ce02925cf766fc508d4ee83424369e71548
Enable options to remap CapsLock whenever an external keyboard is connected.

As per comments #16 and #17 on issue 167237, we will assume that most
external keyboards have a CapsLock key (chromeos external keyboards are
exceptions. However, there's no way to distinguish them at the moment).

This CL enables/disables the CapsLock remapping options in the keyboard
settings whenever there's an external keyboard is connected/disconnected
respectively.

BUG=167237

Review URL: https://codereview.chromium.org/1188693002

Cr-Commit-Position: refs/heads/master@{#334538}
chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc
chrome/browser/ui/webui/options/chromeos/keyboard_handler.h