Focus Traversing with user action "ENTER"
Posted on 2009-04-15
I am trying to find a way to allow users keying in fields by traversing via TAB key or ENTER key from keyboard. TAB working fine from fields to fields but users need to have ENTER for traversing as well. I found a good reference here in EE but some of the methods have deprecated.
I found these from other resources, but it claims to be 'unchecked or unsafe operations'.
Set set = new HashSet(
set.clear(); // Call clear() if you want to eliminate the current key set
I try to apply above for my code but I wasn't sure if its working and how should I be traverse from 1 field to another. Any advice is appreciated. Thanks.