W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2008

[whatwg] Should enter be mapped to click?

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 15 Jul 2008 07:50:25 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0807150746300.12994@hixie.dreamhostps.com>
On Mon, 14 Jul 2008, Aaron Leventhal wrote:
>
> Now that tabindex can be used on any element to make it focusable, it 
> makes sense that it should be possible to trigger a click on those 
> elements with the keyboard.
> 
> Opera maps Enter to click. As far as I know, other browsers only do that 
> for a few elements like<a>.
> 
> What do people think? Should it be spec'd?

3.4.1.7. Interactive content, paragraph 3:

| When activation is performed via some method other than clicking the 
| pointing device, the default action of the event that triggers the 
| activation must, instead of being activating the element directly, be to 
| fire a click event on the same element.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 15 July 2008 00:50:25 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:03 UTC