• Hello!

    I noticed that when I use the tab-key to navigate through the menu, it opens the submenu automatically. I found the code in maxmegamenu.js on line 349 where it automatically calls the showPanel function whenever you press the tab key.

    Is there any setting where you can disable this functionality?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Andy,

    There is not a way to disable that sorry. This functionality is added for users who need to use a keyboard to navigate your site (blind, low sighted, low mobility users).

    Regards,
    Tom

    Thread Starter andynadheer

    (@andynadheer)

    Im aware that this functionality is for low mobility users. I was thinking that disabling this functionality can help the user with low mobility navigate faster through the navbar. In this case, the user has to click enter or space each time the user clicks on tab to close the current opened sub-menu. For instance, if there are 8 menu links, and the user wants to navigate to the sub-menu in menu-link 7, it’s required to click enter 6 times for each tab to get to the 7th menu-link, which makes it totalt of 12 clicks (tab + enter/space), instead of just using the tab bar. I would like to make it possible so that the user can control whenever he or she wants to toggle the sub-menu using enter.

    I’d like to jump in on this! I have the same issue. I don’t want the submenu to open when I tab to a main nav item. It should only open when the return key is pressed. If the nav item is both a link and sub menu toggle, a keyboard user should first end up on the link, then on the next tab press focus should end up on a toggle button and the return key should open the sub menu.

    All according to W3 that reference the WCAG standard.

    https://www.w3.org/WAI/tutorials/menus/flyout/#keyboard-users

    Plugin Author megamenu

    (@megamenu)

    Hi both,

    There are a couple of options I think. Regardless of how the menu is set, the user can always use the left and right arrows to skip to the next top level item.

    You can set the Disable Link option on the top level menu item, and that will prevent the sub menu appearing automatically (like we have on the demo menu on megamenu.com). Pressing enter will show/hide the sub menu (as the link has no other action to perform).

    Regards,
    Tom

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable showing submenu on tab keypress’ is closed to new replies.