I've got a subclass of EditText text that stops receiving KeyEvents
after losing and then regaining focus. Here is an example class:
class MyEditText extends EditText {
public MyEditText(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public void onKeyUp(int keyCode, KeyEvent event) {
System.out.println("KeyCode: " + keyCode);
return super.onKeyUp(keyCode, event);
}
I've got two of these on a page. If I focus one of them and start
typing, I receive the KeyEvents just fine. However, if I focus the
other EditText, and then refocus the first one, it no longer calls the
custom onKeyUp method anymore. I don't understand what I'm doing
wrong here, it seems like a fairly simple task.
What do I need to do so that it receives the event?
--
Adam Olsen
SendOutCards.com
http://www.vimtips.org
http://last.fm/user/synic
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en