Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Menu Example Tab Index Broken #658

Open
enqueue opened this issue May 9, 2022 · 2 comments
Open

Application Menu Example Tab Index Broken #658

enqueue opened this issue May 9, 2022 · 2 comments

Comments

@enqueue
Copy link

enqueue commented May 9, 2022

Summary

In the example implementation of the application menu, using Shift-Tab focuses the first menu item instead of the first previous focusable element outside the application menu.

Steps to reproduce

  1. Open https://www.w3.org/WAI/tutorials/menus/application-menus-code/
  2. Use tab to focus the "File" menu item
  3. Use right cursor to focus the "Edit" menu item
  4. Use Shift-tab

Expected behavior

Focus is on the "Menus Tutorial" link element.

This expectation is based on the description of the keyboard behavior on the Application Menus page (Key mapping for top-level menu items), where it says that Shift-tab should select the previous focusable element outside of the menu.

Actual behavior

Focus is on the "File" menu item.

wai-appmenu

Environment

I am using Mozilla Firefox 100 on Linux, without any extensions that would interfere with focus handling.

@JAWS-test
Copy link

The problem occurs in all browsers and operating systems. The cause is that the tabindex=0 always remains on the first menu item and is not moved with the focus

@yatil
Copy link
Contributor

yatil commented Jul 14, 2022

Thanks, that is indeed a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants