04-06-2012 01:31 AM
hello pals
i have a problem about use this event together if i use a key down event this disable the menu event so any have any aidea about it
04-06-2012 04:56 AM - edited 04-06-2012 07:48 PM
Please only ask your questions once. Your question is answered here:
Edit:
Apologies, I misread the question.
04-06-2012 12:36 PM
that is different cause here i try to manage the bb key event and key down event in the other post i talk about the keydown event and the click event of trackpad
04-06-2012 12:40 PM
I cannot answer exactly without seeing the code of your keyDown override. I can make a guess, however: most probably your keyDown method returns true where it shouldn't. If you do not process an event yourself, returning super.keyDown is the safest way of handling it.
04-10-2012 01:12 AM
well i change the return by false but now i have another problem because the event keydown is about the return key and first when i press this key i see how this change of line in my listfield there any way for just execute the event before its change the line
04-10-2012 06:11 AM
If you want the 'enter' key to process as a click, have you tried overriding keyChar for the ListField.
04-10-2012 10:41 AM
i override keychar
public boolean keyChar( char key, int status, int time )
{
if ( key == Characters.ENTER )
{
System.out.println("here");
......
}
}
return false;
}
but it doesn't work when i press enter key it's change of line and later change my screen
04-10-2012 10:51 AM
If you only need to process ENTER key, do not override keyDown, do everything in keyChar. keyDown is a lower-level call which you should override only when you really need it and know exactly what you are doing. Overriding such stuff in games where timing is crucial can be necessary; in regular applications it will do you more harm than good.
04-10-2012 01:41 PM
thats i do now but the issue continue, i have a listfield when i selected one and click enter open a new Screen but first this jump to next line before to change screen, there a way for this not happen i just want to see new Screen not the change of line
04-10-2012 01:50 PM
On what level are you overriding keyChar? Is in in your Screen or the ListField? MainScreen, I believe, has its own processing of ENTER key, so you might want to override it there.