Skip to content

Commit cd61b06

Browse files
committed
Event.which: fix a typo
Fixes jquery/jquery.com#105 Closes jquerygh-769
1 parent 14b0978 commit cd61b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/event.which.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</signature>
77
<desc>For key or mouse events, this property indicates the specific key or button that was pressed.</desc>
88
<longdesc>
9-
<p>The <code>event.which</code> property normalizes <code>event.keyCode</code> and <code>event.charCode</code>. It is recommended to watch <code>event.which</code> for keyboard key input. For more detail, read about <a href="https://developer.mozilla.org/en/DOM/event.charCode#Notes">event.charCode on the MDC</a>. </p>
9+
<p>The <code>event.which</code> property normalizes <code>event.keyCode</code> and <code>event.charCode</code>. It is recommended to watch <code>event.which</code> for keyboard key input. For more detail, read about <a href="https://developer.mozilla.org/en/DOM/event.charCode#Notes">event.charCode on the MDN</a>. </p>
1010
<p><code>event.which</code> also normalizes button presses (<code>mousedown</code> and <code>mouseup</code>events), reporting <code>1</code> for left button, <code>2</code> for middle, and <code>3</code> for right. Use <code>event.which</code> instead of <code>event.button</code>. </p>
1111
</longdesc>
1212
<example>

0 commit comments

Comments
 (0)