Winforms: [Accessibility] The focus cannot turn clockwise and turn counter clockwise successfully by using Tab & Shift + Tab to navigate in MenuStrip

Created on 4 Sep 2020  路  3Comments  路  Source: dotnet/winforms

  • .NET Core Version:
    .NET SDK 5.0.100-rc.1.20453.7

  • Have you experienced this same bug with .NET Framework?:
    Yes

  • More Info
    The BindingNavigator/MenuStrip/ToolStrip also reproduce this issue.

Problem description:
Steps2: The focus Stay in the first Item of ToolStrip by using Tab & Shift + Tab to navigate.
Steps7: The focus both turn clockwise by using Tab & Shift + Tab to navigate now,
TestResult_focus

Expected behavior:
Steps2: The focus should turn clockwise and turn counter clockwise successfully.
Steps7: The focus should turn counter clockwise by using Shift + Tab to navigate,

Minimal repro:

  1. Extract "WindowsFormsApp2.zip" and open it in VS(the ToolStrip's TabStop property value is true in this project)
  2. Build and run the project.
  3. Navigate the ToolStrip by using Tab & Shift + Tab and observe.
  4. Stop the project and set ToolStrip's TabStop property value to false.
  5. Build and run the project again.
  6. Switch focus to TextBox item in ToolStrip.
  7. Using Tab & Shift + Tab to navigate ToolStrip's items and observe.
tenet-accessibility waiting-review

Most helpful comment

A little corrections: For step2, when TabStop = true, cannot use Tab & Shift + Tab to navigate toolStripItems in menuStrip/ToolStrip --- it is by design. And for step7, when TabStop = false, can use Tab & Shift + Tab to navigate, but both turn clockwise, Shift + Tab should turn counter clockwise --- It is a issue in here.
@merriemcgaw if setting TabStop = true in menuStrip/ToolStrip, we can just use Tab to go through toolstripItems inside these controls, and fall into them, cannot jump out and tab to other control in same form designer.

All 3 comments

This is by design, because setting ToolStrip's TabStop property value to false. Here is reference: true if the user can give the focus to the control using the TAB key; otherwise, false. from MSDN: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.tabstop?view=netcore-3.1

@Olina-Zhang can we go ahead and make sure the accessibility sample app is set up to demonstrate that we can set it to respond to TAB key?

A little corrections: For step2, when TabStop = true, cannot use Tab & Shift + Tab to navigate toolStripItems in menuStrip/ToolStrip --- it is by design. And for step7, when TabStop = false, can use Tab & Shift + Tab to navigate, but both turn clockwise, Shift + Tab should turn counter clockwise --- It is a issue in here.
@merriemcgaw if setting TabStop = true in menuStrip/ToolStrip, we can just use Tab to go through toolstripItems inside these controls, and fall into them, cannot jump out and tab to other control in same form designer.

Was this page helpful?
0 / 5 - 0 ratings