• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make enter work like tab  RSS feed

 
Roger Wells
Ranch Hand
Posts: 51
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the following code and trying to make the enter key work like the tab key.

i have tried some different code but nothing seems to work.

Any help would be appreciated

Thanks
Roger

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was Swing, one of the possible approaches would be

1) Add action listener to source 'A'
2) On action lookup which is the next focusable component
3) Shift focus to next target.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!