commit | d9b26ef26aef2e8d2cc22db3cea60584d3fc83f8 | [log] [tgz] |
---|---|---|
author | Taran Singh <tarandeep@google.com> | Tue Dec 03 20:56:49 2024 +0000 |
committer | Taran Singh <tarandeep@google.com> | Tue Dec 03 20:56:49 2024 +0000 |
tree | 9d6b2ce529bbcf1e6a87f4c8fcdd6d2c4bd90c85 | |
parent | f597774c740203451f1b2033cef374f999939ef1 [diff] |
Fix usage of KeyEvent modifiers in input method session In [1] we started using KeyEvent#hasModifiers() when the intention was to check if any mentioned key modifier is used. The correct usage would be directly checking for those modifiers e.g.# isCtrlPressed() [1]: I6589cc73839acb6b2c3f9256c664b5db7e1ade8a Fix: 380317043 Test: atest CtsInputMethodTestCases InputMethodServiceTest Flag: android.view.inputmethod.verify_key_event Change-Id: I69cb41d805f5b64f90f8a7c53b0e867a03c94b3e