• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make enter work like tab

 
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!