elitevenkat Active Member Licensed User Longtime User Jan 17, 2017 #1 I want to use a custom keyboard built for one of my b4j apps(touch based). I tried to invoke the osk of windows on a text field getting focus and loosing. The osk is shown and hidden as required. But the response time of osk pop-up is a bit slow. I had designed a custom kb with numeric keys by showing the numbers in a series of buttons. The problem is getting the focus back to the text field. If there is only one text field it works fine. Like textfld.reqfocus can be used in the button click event. The problem is when there are multiple textbooks to be handled. Hope I have made my problem clear. I could not find any solution in the forum.
I want to use a custom keyboard built for one of my b4j apps(touch based). I tried to invoke the osk of windows on a text field getting focus and loosing. The osk is shown and hidden as required. But the response time of osk pop-up is a bit slow. I had designed a custom kb with numeric keys by showing the numbers in a series of buttons. The problem is getting the focus back to the text field. If there is only one text field it works fine. Like textfld.reqfocus can be used in the button click event. The problem is when there are multiple textbooks to be handled. Hope I have made my problem clear. I could not find any solution in the forum.
Erel B4X founder Staff member Licensed User Longtime User Jan 17, 2017 #2 You need to store a reference to the target TextField (global variable) instead of directly referencing any specific text field. Upvote 0
You need to store a reference to the target TextField (global variable) instead of directly referencing any specific text field.