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:
parent
467009169b
commit
131bdc4507
@ -387,6 +387,12 @@ public class LibraryActivity
|
|||||||
@Override
|
@Override
|
||||||
public boolean onKeyDown(int keyCode, KeyEvent event)
|
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))
|
if (super.onKeyDown(keyCode, event))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user