override the escape key in the keyChar method should do it:
public boolean keyChar(char key, int status, int time) {
boolean retval = false;
switch (key) {
case Characters.ESCAPE:
//do whatever, for example:
UiApplication.getUiApplication().popScreen(UiAppli cation.getUiApplication().getActiveScreen());
retval = true;//handled the event - should prevent changes made dialog
break;
default:
retval = super.keyChar(key, status, time);
}
return retval;
}
there's probably a simpler way though
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Last edited by jfisher; 08-02-2007 at 04:20 AM..
|