Tecla Arriba
El evento es iniciado cuando la tecla es soltada.
Información General
- Specification
- Interface
- Bubbles
-
Si
- Cancelable
-
Si
- Target
-
Document, Element
- Default Action
-
Ninguna
Propiedades
target
- EventTarget Read only-
The event target (the topmost target in the DOM tree).
type
- DOMString Read only-
The type of event.
bubbles
- Boolean Read only-
Whether the event normally bubbles or not
cancelable
- Boolean Read only-
Whether the event is cancellable or not?
view
- WindowProxy Read only-
In browsers,
document.defaultView
returns the window object associated with a document, or null if none is available. (window
of the document) detail
-long
(float
) Read only-
0.
target
- EventTarget (DOM element) Read only-
Focused element processing the key event, root element if no suitable input element focused.
char
- DOMString (string) Read only-
The character value of the key. If the key corresponds to a printable character, this value is a non-empty Unicode string containing that character. If the key doesn't have a printable representation, this is an empty string. See key names and char values for the detail.
Nota: If the key is used as a macro that inserts multiple characters, this attribute's value is the entire string, not just the first character.
key
- DOMString (string) Read only-
The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the
char
attribute. Otherwise, it's one of the key value strings specified in Key values. If the key can't be identified, this is the string "Unidentified". See key names and char values for the detail. Read Only. charCode
- Unsigned long (int) Read only-
The Unicode reference number of the key; this attribute is used only by the
keypress
event. For keys whosechar
attribute contains multiple characters, this is the Unicode value of the first character in that attribute.Advertencia: This attribute is deprecated; you should use
char
instead, if available. keyCode
- Unsigned long (int) Read only-
A system and implementation dependent numerical code identifying the unmodified value of the pressed key. This is usually the decimal ASCII (RFC 20) or Windows 1252 code corresponding to the key; see Virtual key codes for a list of common values. If the key can't be identified, this value is 0.
Advertencia: This attribute is deprecated; you should use
key
instead, if available. which
- Unsigned long (int) Read only-
A system and implementation dependent numeric code identifying the unmodified value of the pressed key; this is usually the same as
keyCode
.Advertencia: This attribute is deprecated; you should use
key
instead, if available. location
- long (float) Read only-
The location of the device.
repeat
- boolean Read only-
true
if a key has been depressed long enough to trigger key repetition, otherwisefalse
. locale
- string Read only-
The language code for the key event, if available; otherwise, the empty string.
ctrlKey
- boolean Read only-
true
if the control key was down when the event was fired.false
otherwise. shiftKey
- boolean Read only-
true
if the shift key was down when the event was fired.false
otherwise. altKey
- boolean Read only-
true
if the alt key was down when the event was fired.false
otherwise. metaKey
- boolean Read only-
true
if the meta key was down when the event was fired.false
otherwise.
Eventos Relacionados
Especificaciones
Specification |
---|
UI Events # event-type-keyup |
HTML Standard # handler-onkeyup |
Compatibilidad con navegadores
BCD tables only load in the browser