In a Form containing editable components (like TextFields), the first 
component automatically gains the focus when the Form shows. But there is 
an issue with TextFields as the virtual keyboard do not automatically shows 
(at least on Android, I did not test on iOS). This is kind of weird as the 
user has to click on the TextField that already has the focus (it has the 
blinking cursor and the text hint, if there is some, do not appear) to see 
the keyboard to be displayed. I think it would make more sense to display 
the virtual keyboard if an editable TextField already has gain foccus when 
a Form shows...
But, in any case, having an auto focus on the first TextField of a Form is 
not always relevant. For example I have a Form with a search TextField in 
the Toolbar. The problem is that, when I open this Form, the search Field 
is automatically focused (and, as a consequence, the text hint is not 
displayed so the user don't even know what this textfield is for until it 
clicks somewhere else to make it lose focus...) whereas the user do not 
necessarily want to perform a search. So I would like to be able to 
dissable this autofoccus behavior. I tried `form.setEditOnShow(null);` 
and  `form.setFocused(null);` but with no success. Is there an easy way to 
do it?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/823f5652-c404-4494-9641-f28ca8af176e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to