Fix 23697 - KeyboardEventInit needs to include keyCode/charCode/which (for legacy)
authorGary Kacmarcik <garykac@google.com>
Mon, 07 Apr 2014 17:30:52 -0700
changeset 575 4d46ba3de875
parent 574 29d9ed38ab98
child 576 75f05be2ab16
Fix 23697 - KeyboardEventInit needs to include keyCode/charCode/which (for legacy)
html/DOM3-Events.html
--- a/html/DOM3-Events.html	Mon Apr 07 16:38:36 2014 -0700
+++ b/html/DOM3-Events.html	Mon Apr 07 17:30:52 2014 -0700
@@ -9510,6 +9510,48 @@
 
 				</dd>
 			</dl>
+
+			<dl>
+				<dt id="events-KeyboardEventInit-supplemental"><strong>dictionary <em>KeyboardEventInit (supplemental)</em></strong></dt>
+				<dd>
+					<p>Browsers that include support for
+							<code class="attribute-name">keyCode</code>,
+							<code class="attribute-name">charCode</code>,
+						and
+							<code class="attribute-name">which</code>
+						in <code>KeyboardEvent</code> should also add the following members to the
+						<code>KeyboardEventInit</code> dictionary:
+						</p>
+
+					<dl class="idl" title="partial dictionary KeyboardEventInit">
+						<dt>unsigned long charCode = 0</dt>
+						<dd>
+							<p>Initializes the <code class="attribute-name">charCode</code> attribute of the 
+								KeyboardEvent to the Unicode code point for the event's character.
+								</p>
+						</dd>
+
+						<dt>unsigned long keyCode = 0</dt>
+						<dd>
+							<p>Initializes the <code class="attribute-name">keyCode</code> attribute of the 
+								KeyboardEvent to the system- and implementation-dependent
+								numerical code signifying the unmodified identifier associated with the key pressed.
+								</p>
+						</dd>
+
+						<dt>unsigned long which = 0</dt>
+						<dd>
+							<p>Initializes the <code>which</code> attribute of the KeyboardEvent
+								to the implementation-dependent numerical code
+								signifying the unmodified identifier associated with the key pressed.
+								In most cases, the value is identical to
+								<code class="attribute-name"><a href="#widl-KeyboardEvent-keyCode">keyCode</a></code>.
+								</p>
+						</dd>
+					</dl>
+				</dd>
+			</dl>
+
 		</section>
 
 		<section id="legacy-key-models">