accessKey - label and alternative keys

SVG has an accessKey feature for begin and end animations.

    http://www.w3.org/TR/2008/REC-SVGTiny12-20081222/animate.html#AccessKeyValueSyntax

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