09-11-2008 06:11 PM
Is there something I am missing, I have a custom field and just want any keys given to it
when it has focus. I handle the navigation fine using the Nav methods of course.
protected boolean keyUp(int keycode, int time) {
System.out.println("key code "+keycode);
mykeyPressed(keycode);
return true;
}
09-11-2008 07:56 PM
I use keyChar to do this sort of thing. However I think keys are delivered to the Screen before being delivered to the individual field - you can test that by coding a keyChar in you MainScreen and a keyChar in your Field, and see which gets control first.
09-12-2008 10:10 AM
Thanks this worked in the custom Field class I have
protected boolean keyChar(char character,
int status,
int time){
keyPressed(character);
return true;
}