commit | 97b0d3b5fcbe4dcf0a8d359f52027bbf49a8f387 | [log] [tgz] |
---|---|---|
author | liushenxiang <liushenxiang@xiaomi.com> | Fri May 21 20:24:09 2021 +0800 |
committer | Siarhei Vishniakou <svv@google.com> | Tue May 25 18:37:17 2021 -0700 |
tree | bb9066beb258bf24e4ee7e8c0ce877c5de10f122 | |
parent | 161a5f38c7e44c77fa0a0d4f0a5057a5cb723114 [diff] |
[BugFix] Reset key repeating in case a keyboard device was disabled or enabled. The "resetKeyRepeatLocked" will never be called when we disable a keyboard device. In this case, if we long click a key on keyboard and it began to repeat. Then we disable the keyboard. We find that the key repeating will never stop until a next key event come. Test: atest inputflinger_tests Signed-off-by: liushenxiang <liushenxiang@xiaomi.com> Change-Id: Ic0e37d1e1e447d4965f3fbb479e0eca7c726a6ab