Workaround bug in ICS's handling of backspace

This was causing backspace to delete two characters instead of one on
ICS
This commit is contained in:
Christopher Eby 2012-03-14 17:43:29 -05:00
parent 467009169b
commit 131bdc4507

View File

@ -387,6 +387,12 @@ public class LibraryActivity
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if (keyCode == KeyEvent.KEYCODE_DEL || keyCode == KeyEvent.KEYCODE_FORWARD_DEL)
// On ICS, EditText reports backspace events as handled despite
// actually handling them. To workaround, just assume the event was
// handled if we get here.
return true;
if (super.onKeyDown(keyCode, event))
return true;