commit | 819940f8bf7c67466c25d75ad309d15ca8eface9 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Mon Jul 11 16:25:33 2016 -0700 |
committer | Ben Lin <linben@google.com> | Tue Jul 12 23:42:56 2016 +0000 |
tree | a83bb7b9a6d67a10250aaafa82b39158a7f9e141 | |
parent | d4e0de5ff3db121e75d81079d2666225f1fb34ff [diff] |
Trapping backspace at EditText level to prevent popping Docs. When the EditText is empty, pressing backspace on soft/hardware keyboard will call on the EditText's OnKeyListener. Since we don't handle backspace, it will then bubble up to Activity-level, which will then pop the document stack due to the feature of using backspace as navigation. This will trap the call correctly if the EditText is empty. Bug: 30066261 Change-Id: I231507b9469bfa52478872491f1d2713a1ac58ba