add early draft of keyboard event inclusion
authorRichard Schwerdtfeger <schwer@us.ibm.com>
Mon, 22 Jul 2013 15:21:29 -0500
changeset 528 917575fda3e0
parent 527 6f403f5d86d7
child 529 81779ddf733d
add early draft of keyboard event inclusion
master/interact.html
master/script.html
--- a/master/interact.html	Wed Jul 17 17:37:45 2013 -0500
+++ b/master/interact.html	Mon Jul 22 15:21:29 2013 -0500
@@ -193,6 +193,13 @@
 ideal.  How much can we remove?  SVGLoad in particular, and how it is currently
 required to fire for every element.</p>
 
+<p class="issue">DOM 2 has no keyboard events in it. The only normative spec. on this is a new <a href="https://dvcs.w3.org/hg/d4e/raw-file/default/source_respec.htm">UI events spec. that should become a public working draft soon. This is areplacement for the DOM 3 Events spec. The group needs to discuss the current limitation in using DOM 2 events. Also, DOMActivate does not appear in the UI Events Spec. Regarding the activate event, user agents treat click the same as activate. 
+</a>
+
+Having all these SVG-specific duplicates of standard DOM events isn't
+ideal.  How much can we remove?  SVGLoad in particular, and how it is currently
+required to fire for every element.</p>
+
     <table  class="vert event-table">
       <tr>
         <th>Event name and description</th>
@@ -236,6 +243,43 @@
         href="script.html#OnActivateEventAttribute">onactivate</a></td>
       </tr>
       <tr>
+        <td id="KeyDownEvent"><p class="event-name"><strong>keydown</strong></p>
+        <p>Occurs when a key is pressed down. The keydown event type is device dependent and relies on the capabilities         of the input devices and how they are mapped in the operating system.
+        </p></td>
+        <td>(same)</td>
+        <td><a
+        href="https://dvcs.w3.org/hg/d4e/raw-file/default/source_respec.htm#keyboard-events">
+        KeyboardEvent</a></td>
+        <td><a
+        href="script.html#OnKeyDownEventAttribute">onkeydown</a></td>
+      </tr>
+      <tr>
+        <td id="KeyPressEvent"><p class="event-name"><strong>keypress</strong></p>
+        <p> Occures when a key is pressed down, if and only if that key normally produces 
+        a character value. The keypress event type is device dependent and relies on the 
+        capabilities of the input devices and how they are mapped in the operating system.
+        </p></td>
+        <td>(same)</td>
+        <td><a
+        href="https://dvcs.w3.org/hg/d4e/raw-file/default/source_respec.htm#keyboard-events">
+        KeyboardEvent</a></td>
+        <td><a
+        href="script.html#OnKeyPressEventAttribute">onkeypress</a></td>
+      </tr>
+      <tr>
+        <td id="KeyUpEvent"><p class="event-name"><strong>keyup</strong></p>
+        <p>A user agent must dispatch this event when a key is released. The keyup event 
+        type is device dependent and relies on the capabilities of the input devices and 
+        how they are mapped in the operating system.
+        </p></td>
+        <td>(same)</td>
+        <td><a
+        href="https://dvcs.w3.org/hg/d4e/raw-file/default/source_respec.htm#keyboard-events">
+        KeyboardEvent</a></td>
+        <td><a
+        href="script.html#OnKeyUpEventAttribute">onkeyup</a></td>
+      </tr>
+      <tr>
         <td id="ClickEvent"><p class="event-name"><strong>click</strong></p>
         <p>Occurs when the pointing device button is clicked over
         an element. A click is defined as a mousedown and mouseup
--- a/master/script.html	Wed Jul 17 17:37:45 2013 -0500
+++ b/master/script.html	Mon Jul 22 15:21:29 2013 -0500
@@ -241,6 +241,9 @@
     <dt id="OnFocusOutEventAttribute"><span class="adef">onfocusout</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>
     <dt id="OnActivateEventAttribute"><span class="adef">onactivate</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>
     <dt id="OnClickEventAttribute"><span class="adef">onclick</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>
+    <dt id="OnKeyDownEventAttribute"><span class="adef">onkeydown</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>
+    <dt id="OnKeyPressEventAttribute"><span class="adef">onkeypress</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>
+    <dt id="OnKeyUpEventAttribute"><span class="adef">onkeyup</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>
     <dt id="OnMouseDownEventAttribute"><span class="adef">onmousedown</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>
     <dt id="OnMouseUpEventAttribute"><span class="adef">onmouseup</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>
     <dt id="OnMouseOverEventAttribute"><span class="adef">onmouseover</span> = "<span class="attr-value"><a href='types.html#DataTypeAnything'>&lt;anything&gt;</a></span>"</dt>