commit | d9ba201f592d7112f8c41654dfdc05dd182a82bb | [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 | b3224573773908f310f0a0aae34791c8a3b4f112 | |
parent | ab1b52a0c4804493232f28b1f08fce31db171884 [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