Determine whether element was shift + tabbed onto

$(fsNavLevel1).find('>li:last-child > a').on('keyup', function(e) {
      if(e.keyCode == 9 && e.shiftKey) {
        var totalLinks = $(this).parent('li').find(dropdownWrapper).find('a').length;
        console.log($(this));
        $(this).parent('li')
          .find(dropdownWrapper)
          .find('a[tabindex='+totalLinks+']').focus();
      }
    });
cod ere po.de mo.fin als ite.com/navm ain-accessib ility

If you focus on the “Next One” link, then shift+tab onto the menu, if you hold down the shift key / tab key just a smidge longer than needed, it properly focuses on the last element in the dropdown menu, otherwise, you’ll still land on the level 1 link. Is there any sort of Javascript way to more easily capture this behavior?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.