themefoundation / mo-js

Menu Object. A mobile-first, progressibly enhanced menu system.
22 stars 4 forks source link

Improved keyboard support #6

Closed stephenharris closed 10 years ago

stephenharris commented 10 years ago

As you mentioned in an e-mail, when focus goes from sub-menu to a non-menu link, there is nothing to remove the openSubmenuClass class. This patch fixes that by listening to both the focus and blur events.