programmatically open virtual keyboard and set force all caps

9 views
Skip to first unread message

shop.servic...@gmail.com

unread,
Aug 8, 2017, 6:46:43 PM8/8/17
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
Desktop OS Windows 10
Simulator 7.3
Device All

How can I programmatically open a v-keyboard 

And 2, how to set force upper case on the keyboard

Regards

Shai Almog

unread,
Aug 9, 2017, 1:40:17 AM8/9/17
to CodenameOne Discussions, shop.servic...@gmail.com
startEditAsync on the text field should do that.
You can't force caps although there is a caps constraint which might work (not sure). However, you can add an actionListener to the text field like this:

tf.addActionListener(e -> tf.setText(tf.getText().toUpperCase()));


Reply all
Reply to author
Forward
0 new messages