From 02c5d80e248b952ea4d98a2c47cc936f37a9fe9e Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Tue, 16 Feb 2016 21:11:09 +0000 Subject: [PATCH] Clarified when the keydown event is fired Fixes gh-876 --- entries/keydown.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entries/keydown.xml b/entries/keydown.xml index 50f83b57..f21ae4e0 100644 --- a/entries/keydown.xml +++ b/entries/keydown.xml @@ -24,7 +24,7 @@ Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element.

This method is a shortcut for .on( "keydown", handler ) in the first and second variations, and .trigger( "keydown" ) in the third.

-

The keydown 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.

+

The keydown 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.

For example, consider the HTML:


 <form>