locked
Removing the keyboard tab focus on the group header in WinJS.UI.ListView RRS feed

  • Question

  • How can I remove the keyboard tab focus on the group header in WinJS.UI.ListView. The group header has tabIndex set to "0" when viewed in DOM explorer (in Visual Studio).
    Friday, July 26, 2013 9:45 PM

Answers

  • Hi,

    Thanks for posting!

    If you want to remove the tab index, I think you can set the "tabindex" property to "-1",the code as blew:

    setAttribute( 'tabindex', '-1' )
    or
     tabindex="-1"

    I think you can add this code into your listview control and try it.

    Thanks!

    Thursday, August 1, 2013 3:38 AM
    Moderator

All replies

  • Hi,

    Thanks for posting!

    If you want to remove the tab index, I think you can set the "tabindex" property to "-1",the code as blew:

    setAttribute( 'tabindex', '-1' )
    or
     tabindex="-1"

    I think you can add this code into your listview control and try it.

    Thanks!

    Thursday, August 1, 2013 3:38 AM
    Moderator
  • But how do I set the tabIndex manually. The element that receives the tab focus is created internally win WinJS
    Friday, August 23, 2013 11:36 PM