W3C home > Mailing lists > Public > www-svg@w3.org > June 2009

accessKey - label and alternative keys

From: Simon Pieters <simonp@opera.com>
Date: Wed, 17 Jun 2009 16:11:03 +0200
To: "www-svg@w3.org" <www-svg@w3.org>
Message-ID: <op.uvn9opyyidj3kv@zcorpandell.linkoping.osa>
SVG has an accessKey feature for begin and end animations.


However, it seems there's nothing to use as a label in the user interface  
when the user agent wants to expose the access keys to the user.

Since an <animation> element can have two access keys -- one for begin and  
one for end -- and it seems desirable to have different labels for begin  
and end, things like <title> are not good enough.

Therefore we propose to extend the accessKey-value syntax to include a  
label, or to introduce a new item for begin-value and end-value, or  
introduce two new attributes for <animate>.

Examples for what it could look like:

Extending accessKey-value:

    <animation begin="0s; accessKey(a) 1s 'Start animation'"
               end="0s; accessKey(b) 1s 'End animation'">

    <animation begin="0s; accessKey(a, Start animation) 1s"
               end="0s; accessKey(b, End animation) 1s">

    <animation begin="0s; accessKey(a) 1s label(Start animation)"
               end="0s; accessKey(a) 1s label(End animation)">

Introducing a new item for begin-value and end-value:

    <animation begin="0s; accessKey(a) 1s; label(Start animation)"
               end="0s; accessKey(b) 1s; label(End animation)">

Introducing new attributes:

    <animation begin="0s; accessKey(a) 1s" beginlabel="Start animation"
               end="0s; accessKey(b) 1s" endlabel="End animation">

On another note, HTML5 has introduced a way to specify alternative access  
keys in the accesskey="" attribute, like so:

    <input accesskey="a 1">

...and the browser can choose to use one of them based on which keys are  
available (or can choose another key altogether).

Maybe it would be nice if this was possible in SVG, too. For instance:

    <animation begin="0s; accessKey(a 1) 1s">

Simon Pieters
Opera Software
Received on Wednesday, 17 June 2009 14:11:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:17 UTC