B4J Question Read Internal Keyboard ?

supriono

Member
Licensed User
Longtime User
hello

I tried to make a simple application to create a keyboard with tab and enter function to select textfield and button. when using the tab key from the keyboard the selection of textfield runs fine but with the program not running. I use AWTRobot
anyone can help me


project file
 

Attachments

  • internal_keyboard.zip
    2.3 KB · Views: 336

Roycefer

Well-Known Member
Licensed User
Longtime User
When you press the Tab Button in your app, you are assigning focus to that the Tab Button. Then the app programmatically presses the Tab key which has the effect of assigning focus to the next View in your Layout. This is the Enter Button.

If you just want to assign focus to the next View, you should use the internal methods for that like
B4X:
TextField1.RequestFocus
 
Upvote 0

supriono

Member
Licensed User
Longtime User
When you press the Tab Button in your app, you are assigning focus to that the Tab Button. Then the app programmatically presses the Tab key which has the effect of assigning focus to the next View in your Layout. This is the Enter Button.

If you just want to assign focus to the next View, you should use the internal methods for that like
B4X:
TextField1.RequestFocus
thanks Roycefer, you save my work.
 
Upvote 0
Top