DescriptionReapply Caps Lock and Num Lock to core keyboard whenever new X input device is added.
- Let Chrome maintain Num Lock & Caps Lock state. Monitor the X device hierarchy, and, upon detecting any newly attached keyboards, reapply the current Num Lock and Caps Lock state to the master/core keyboard, which will then propagate down to all slaves (including the newly attached one).
- Similarly, whenever Chrome detects a Num Lock and/or Caps Lock state change originating from the server, it parrots the change back down to X. This fixes the XKB asymmetric indicator state propagation.
See also: http://crosbug.com/p/6245#c18
BUG=chromium-os:22562
BUG=crosbug.com/p/5795
BUG=crosbug.com/p/6245
TEST=On Mario and Alex, connect a USB hub, and connect two keyboards, say A and B, to the hub. Press NumLock on A, confirm that the NumLock LED on B also changes. Do the same for CapsLock.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108841
Patch Set 1 #Patch Set 2 : code review #Patch Set 3 : fix unit_tests #
Total comments: 6
Patch Set 4 : review fix #Patch Set 5 : XI2 fix #Patch Set 6 : move chrome_browser_main_chromeos.cc to an another CL #Messages
Total messages: 9 (0 generated)
|