W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2012

Officially suggested keyboard interaction for sub-menu items in the "navigation"?

From: Ian Yang <ian@invigoreight.com>
Date: Sat, 28 Jul 2012 20:02:16 +0800
Message-ID: <CABr1FscybKOFMVCT8Rp0mME_zs9MH8OC8+_JGN2VdZ1xhVysWQ@mail.gmail.com>
To: w3c-wai-ig@w3.org
Hi everyone,

In order to make sub-menu itmes in the navigation (role="navigation")
keyboard navigable, I was changing them into "menubar", "menu", and
"menuitems" (by using a jQuery
to add keyboard shortcuts on them.

However, as defined in the spec<http://www.w3.org/WAI/PF/aria-practices/#menu>,
when opening such a sub-menu, vendors should "places focus on the first
menu item". (please see the jQuery page for demo) Maybe that's fine for
assistive technologies to automatically focus the first sub-menu item, but
that is likely to confuse mouse users. For the navigation, the first
sub-menu item shouldn't get focused before mouse users move their mouse
cursor onto it.

That makes me re-think if it is really appropriate to use "menubar",
"menu", and "menuitems" in the navigation.

So if there is officially suggested keyboard interaction specifically for
sub-menus of the "navigation" rather than using the one for "menubar",
"menu", and "menuitems"? If not, wouldn't the above mentioned auto focus
thing confuse mouse users?

Ian Yang
Received on Saturday, 28 July 2012 12:02:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:40 UTC