Winforms: [Accessibility] Keyboard shortcut key is unavailable to access the buttons(One Page, Two Page...)

Created on 31 Jul 2020  ·  8Comments  ·  Source: dotnet/winforms

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

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

More Info:

  1. This issue can also repro on Framework project.
  2. There is a similar bugs: 1156785 in VSO.
  3. We can just use ‘Enter’ key enter to buttons(One Page, Two Page...).

Minimal repro:

  1. Extract “WindowsFormsApp3.zip” and open it in VS.
  2. Build and run the project.
  3. Using Tab key to navigate to Preview button, then press Enter key to show Print preview dialog.
  4. Check whether any shortcut key is provided to buttons(One Page, Two Page...) to access.

Expected behavior:
Keyboard shortcut key should be available to access the buttons(One Page, Two Page...).

Actual behavior:
Keyboard shortcut key is unavailable to access the buttons(One Page, Two Page...).

design-discussion tenet-accessibility

All 8 comments

Perhaps we can use ShortcutKeys property with these buttons.

Hi @Jessie-Zhang01. I have investigated this issue and i see two cases:

  • First case - user opens PrintPreviewDialog. In this case user can get access to buttons using "Tab" key.
  • Second case - user clicks "Enter" button and focus disappears. This behavior already is fixed in #3598.
    3682
    @Jessie-Zhang01, probably we should close it as duplicate #3598. Could you please check that it is not reproduced for last 5.0/master?

In fact, this issue wants to have some separate shortcut keys to open One page, Two pages, etc. For example, press Ctrl + o to open ‘One page’ that I am thinking of. Here is the comment from @merriemcgaw "I think this is its own issue where we need to add Shortcut keys to the dialog."
In addition, 3598 is fixed on the latest 5.0 RC2.

I'd probably go with CTRL+1 for "one page", CTRL+2 for "two page", etc. through to CTRL+5, if we'd go down this route.

I like @russkie's idea. Will that work @Jessie-Zhang01 ?

@merriemcgaw there is no any shortcut key that we can used to access the buttons(One Page, Two Page...). So it would be a good idea to use RussKie's method.

@SergeySmirnov-Akvelon, looks like we've got consensus on how to do this one. Please add the new shortcuts and make sure they show up in the ToolTip, and Narrator announces.

Verified the issue with latest NET SDK 6.0.100-alpha.1.20557.2, this issue is fixed. The user will be able to switch between viewing modes using the shortcut keys (Ctrl+1, Ctrl+2, etc) on PrintPreviewDialog.
step1

Was this page helpful?
0 / 5 - 0 ratings