tal icon indicating copy to clipboard operation
tal copied to clipboard

Focus not getting back when we use keyboards and buttons together in a vertical list.

Open Arunprasanth opened this issue 6 years ago • 2 comments

I have created a vertical list and added 2 buttons and one keyboard in to it. Focus is working fine when I navigate between buttons but when focus comes to keyboard then I cannot navigate back to any of the buttons. Is there any way to resolve this issue ? Please find my example from example

Note : as a temporary solution now I am detecting the up/down key event in keyboard and using listWidget.getChildWidgets()[index].focus(); to get focus Thanks & Regards , Arunprasanth KV

Arunprasanth avatar Mar 12 '18 05:03 Arunprasanth

Hi @Arunprasanth,

I think your issue is that you have enabled vertical wrapping of the keyboard:

myVirtualKeyBoard = new Keyboard("Keyboard", 23, 2 ,keys, true , true);

The 6th parameter sets vertical wrapping to true. So when you press UP or DOWN to focus away from the keyboard, it will instead wrap to the bottom or top row of the keyboard respectively.

Thanks,

Tom

tsadler1988 avatar Mar 22 '18 21:03 tsadler1988

@tsadler1988 Thnaks for your response

Arunprasanth avatar Mar 27 '18 07:03 Arunprasanth

Closing as issue has been answered.

We have deprecated this project and there are no plans for active development going forward.

Please see the deprecation notice.

kukulaka avatar Jan 06 '23 11:01 kukulaka