Skip to content

[Bug]: menu opened stops page keyboard shortcuts from working #4786

Open
@mizgaionutalexandru

Description

@mizgaionutalexandru

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

Menu

Expected behavior

An opened sp-menu should allow application keyboard shortcuts.

Actual behavior

An opened sp-menu doesn't allow application keyboard shortcuts, stopping the propagation of almost all keydown events.

Screenshots

No response

What browsers are you seeing the problem in?

Safari, Chrome

How can we reproduce this issue?

  1. Go to the menu storybook
  2. Press "V" (a storybook keyboard shortcut), observe that nothing happens.
  3. Close the menu
  4. Press "V" again
  5. See that the keyboard shorcut now works.

Sample code or abstract reproduction which illustrates the problem

The problem seems to be related to the interaction between the menu and rovingTabIndex controller as per this PR: https://github.com/adobe/spectrum-web-components/pull/3780/files#r1661806320.

Severity

SEV 2

Logs taken while reproducing problem

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions