Skip to content

Commit a465962

Browse files
committed
Clarified when the keydown event is fired
Fixes jquerygh-876 Closes jquerygh-892
1 parent 5e6a5a0 commit a465962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/keydown.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<desc>Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.</desc>
2525
<longdesc>
2626
<p>This method is a shortcut for <code>.on( "keydown", handler )</code> in the first and second variations, and <code>.trigger( "keydown" )</code> in the third.</p>
27-
<p>The <code>keydown</code> event is sent to an element when the user first presses a key on the keyboard. It can be attached to any element, but the event is only sent to the element that has the focus. Focusable elements can vary between browsers, but form elements can always get focus so are reasonable candidates for this event type.</p>
27+
<p>The <code>keydown</code> event is sent to an element when the user presses a key on the keyboard. If the key is kept pressed, the event is sent every time the operating system repeats the key. It can be attached to any element, but the event is only sent to the element that has the focus. Focusable elements can vary between browsers, but form elements can always get focus so are reasonable candidates for this event type.</p>
2828
<p>For example, consider the HTML:</p>
2929
<pre><code>
3030
&lt;form&gt;

0 commit comments

Comments
 (0)