managing keyEvents in TabFolder

4 messages - 80 views

I am using a tabFolder, and having some widgets on that Like Choice Box as well as Buttons in static layout. I am facing a problem when I am trying to manage the button through left and right key of mobile. i.e when I am pressing left or right key, the focus is being transfered to the adjacent tab. I want to restrict the tab action without managing it through any message behaviour, so that I can manage the complete screen of focused tab through left and right key also as working with up and down.

  

 

If I understand, you would like to "hide" tab navigation key when the focus is on tabItem content ?

Or you want to be able to configure tab navigation key to Up and Down ?

In the current scenario, for a focused tabFolder, it's only UP and DOWN keys are working fine .. but when , i am using LEFT or RIGHT keys  the focus is transfered to the adjacent tabFolder. i.e , Focus of tabFolders is changed  by simply using LEFT or Right Keys, due to this behavior, i am unable to have the complete traversal of the widgets associated with a tabFolder. when I am trying to access any widget through LEFT or RIGHT key on the assocated screen of tabFolder, Inspite of having the control of the widget , the focus is changed to next adhacent TabFolder.

   Kindly, Let me know, How Can I Have control over tab Navigation as well as How can I have LEFT and RIGHT key enabled for a focused tabFolder ?

 

In the past the choice was done to prefer a global Tab navigation than moving focus to a tabButton to navigate through them. In this case the ONLY way to change tab is to bind a Key for forward navigation and an other for backward navigation. The most evident choice was to use LEFT and RIGHT keys.

This choice is our for two reasons :

  • Keep the current focus widget en each tab event if the tab is hidden.
  • have an easy tab navigation because it's an important thing on mobile UI

Because of this choice, we need to observe some rules :

  • Do not propose an horizontal focus navigation in a tabItem
  • Do not use tab navigation keys for something else.

Then How to control tab navigation ?

With 1.0, you can't. We actualy thinking on adding the possibility to change the default tab key navigation by defining two attributes on the TabFolder ... but I think it's not enough for your problem. But event if you control the tab navigation how could you choice between focus navigation and tab navigation ?