commit | fb3cc1164eb3b487d7c10d4c5f626e8527a37053 | [log] [tgz] |
---|---|---|
author | Arthur Hung <arthurhung@google.com> | Wed Apr 13 07:39:50 2022 +0000 |
committer | Arthur Hung <arthurhung@google.com> | Wed Apr 13 08:33:33 2022 +0000 |
tree | dcfe0b3c45d247b6ff2728d746a241422ccb331a | |
parent | 35556594fe06f679cd1ade1350f8a65317bc70e8 [diff] |
Fix led meta state can't be cleared by another keyboard Currently, the led meta state of CapsLock, NumLock and ScrollLock would be stored in to a global state. If we connected with multiple keyboards, and some keyboard changed the led state, others should clear their local led state frist then update it by the global state so we could clear the state per device properly. Bug: 194465459 Test: atest inputflinger_tests Change-Id: I5965cf951a5ebcadc69541b9a036fb38fd428d30