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

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

From: Ian Yang <ian@invigoreight.com>
Date: Sun, 29 Jul 2012 11:12:19 +0800
Message-ID: <CABr1FsdAbfv0aQ2d_u_BiYWPrfL0Y_LF4tJjGvWVrht9OQgnDg@mail.gmail.com>
To: Ramón Corominas <listas@ramoncorominas.com>
Cc: w3c-wai-ig@w3.org
On Sun, Jul 29, 2012 at 4:03 AM, Ramón Corominas

> Hi, Ian and all.
>  As defined in the spec, when opening such a sub-menu, vendors should
>> "places focus on the first menu item".
>  > (...)
> > 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.
> It is fine for keyboard users (and not only AT users). You don't have to
> move the focus to the first sub-item for mouse users (remember you are
> under the "keyboard interaction" section).
> Regards,
> Ramón.

Hi Ramón. Thanks for clarifying this issue! That makes sense.

On Sun, Jul 29, 2012 at 4:07 AM, Ramón Corominas

>  And the spec also said:
>  "When a menu is open and focus is on a menu item in that open menu, then
>> Enter or Space invokes that menu action (which may be to open a submenu)."
>> That obviously can't be applied on "navigation" items because hit Enter key
>> on a "navigation" item will usually take users to another page.
> And what is the problem with that? If the action of the menu item is to
> take users to another page, that is exactly what they would expect to
> happen.

Let's take the following code for example. When the focus is on the "About"
menu item, should hitting Enter key toggle the sub-menu or take users to
about.html ?

<nav role="navigation">
    <ul role="menubar">
        <li role="presentation"><a href="index.html"
        <li role="presentation">
            <a href="about.html" role="menuitem"
            <ul role="menu">
                <li role="presentation"><a href="our-company.html"
role="menuitem">Our company</a></li>
                <li role="presentation"><a href="our-team.html"
role="menuitem">Our team</a></li>
                <li role="presentation"><a href="our-location.html"
role="menuitem">Our location</a></li>
        <li role="presentation"><a href="contact.html"

Ian Yang
Received on Sunday, 29 July 2012 03:12:47 UTC

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