BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 07-11-2008, 05:03 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Jul 2008
Model: 8820
Carrier: Airtel
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default KeyPress

Please Login to Remove!


I have added an ActiveAutoTextEditField in my screen..

after typing in the characters, when i press enter Key, the control shifts to the next line..
Instead i want it to go to the next Field that i have added... (CheckBoxField)..

That is wen the focus is on the ActiveAutoTextEditField , after pressing enter key, The focus should go to the next Field that i have added to the screen ..

How to resolve this
Old 07-11-2008, 06:06 AM   #2 (permalink)
CrackBerry Addict
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts

Overide keyChar and add some logic to change focus to next field, the getFieldWithFocusIndex() ,getFieldCount(), setFieldWithFocus(somefield) and getField(someInt) methods of MainScreen would be a good place to start. or to do it less dynamically just use mycheckboxField.setFocus();

public boolean keyChar(char key, int status, int time) {
boolean retval = false;
switch (key) {
case Characters.ENTER:
//move to next field
retval = super.keyChar(key, status, time);
return retval;
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Copyright 2004-2014
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.