Add (another) note that NumLock should use DOM_KEY_LOCATION_STANDARD.
authorGary Kacmarcik <garykac@google.com>
Mon, 21 Oct 2013 11:41:15 -0700
changeset 501 48900d2fdecd
parent 500 47f581cdb0ab
child 502 f0ffa28c5b50
Add (another) note that NumLock should use DOM_KEY_LOCATION_STANDARD.
html/DOM3-Events.html
--- a/html/DOM3-Events.html	Mon Oct 21 11:34:30 2013 -0700
+++ b/html/DOM3-Events.html	Mon Oct 21 11:41:15 2013 -0700
@@ -4433,7 +4433,10 @@
 						<dt>const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03</dt>
 						<dd>
 							<p>The key activation originated on the numeric keypad or with a virtual key corresponding to the numeric keypad
-								 (when there is more than one possible location for this key).</p>
+								 (when there is more than one possible location for this key).
+								 Note that the <code class="key">'NumLock'</code>key should always be encoded with a location of
+								 <a href="#widl-KeyboardEvent-DOM_KEY_LOCATION_STANDARD"><code class="constant-name">DOM_KEY_LOCATION_STANDARD</code></a>.
+								 </p>
 
 							<div class="example">
 								<div class="example-title"></div>
@@ -5603,8 +5606,9 @@
 				multiple keys. For example, many standard keyboards contain more than one key with the <code class="key">'Shift'</code> key value (normally distinguished by the
 				<a href="#widl-KeyboardEvent-location"><code>KeyboardEvent.location</code></a> values <a href="#widl-KeyboardEvent-DOM_KEY_LOCATION_LEFT"><code class="constant-name">DOM_KEY_LOCATION_LEFT</code></a>
 				and <a href="#widl-KeyboardEvent-DOM_KEY_LOCATION_RIGHT"><code class="constant-name">DOM_KEY_LOCATION_RIGHT</code></a>) or <code class="key">'8'</code> key value (normally
-				distinguished by the <a href="#widl-KeyboardEvent-location"><code>KeyboardEvent.location</code></a> values <a href="#widl-KeyboardEvent-DOM_KEY_LOCATION_STANDARD"><code class="constant-name">
-				DOM_KEY_LOCATION_STANDARD</code></a> and <a href="#widl-KeyboardEvent-DOM_KEY_LOCATION_NUMPAD"><code class="constant-name">DOM_KEY_LOCATION_NUMPAD</code></a>), and user-configured
+				distinguished by the <a href="#widl-KeyboardEvent-location"><code>KeyboardEvent.location</code></a> values
+				<a href="#widl-KeyboardEvent-DOM_KEY_LOCATION_STANDARD"><code class="constant-name">DOM_KEY_LOCATION_STANDARD</code></a>
+				and <a href="#widl-KeyboardEvent-DOM_KEY_LOCATION_NUMPAD"><code class="constant-name">DOM_KEY_LOCATION_NUMPAD</code></a>), and user-configured
 				custom keyboard layouts MAY duplicate any key value in multiple key-state scenarios (note that <a href="#widl-KeyboardEvent-location"><code>KeyboardEvent.location</code></a>
 				is intended for standard keyboard layouts, and cannot always indicate a meaningful distinction).</p>