Skip to content

Screen Readers won't read punctuation characters in Shortcuts #142939

@franciscojma86

Description

@franciscojma86

Steps to reproduce

  1. Create a SingleActivator(LogicalKeyboardKey.comma, meta: true)
  2. Create a MenuBarItem(shortcut:
  3. Using a Screen Reader (VoiceOver in my case), navigate to the menu item

Expected results

The Screen Reader should read "Command Comma". Same with other punctuations like period, quotes, question mark, etc.

Actual results

The Screen Reader will read "Command [silent]", since the comma is silent.

Code sample

Code sample
final shortcut = SingleActivator(LogicalKeyboardKey.comma, meta: true);
MenuItemButton(
        shortcut: shortcut,
        onPressed: () {},
        child: Text('Test Widget)),

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

[✓] Flutter (on macOS 14.3 23D56 darwin-arm64 (Rosetta), locale en)
• Framework revision 457a95f (3 days ago), 2024-02-02T00:00:00.000
• Engine revision 9869d47
• Dart version 5a5d4c2622

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b

[✓] Connected device (1 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.3 23D56 darwin-arm64 (Rosetta)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: desktopRunning on desktopfound in release: 3.16Found to occur in 3.16found in release: 3.20Found to occur in 3.20frameworkflutter/packages/flutter repository. See also f: labels.fyi-linuxFor the attention of the Linux platform teamfyi-windowsFor the attention of the Windows platform teamhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-macosOwned by the macOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions