Get to know MDN better
Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.
La interfaz UIEvent representa eventos de interfaz de usuario simples.
UIEvent deriva de Event. Aunque el método UIEvent.initUIEvent() se mantiene por compatibilidad con versiones anteriores, debe crear un objeto UIEvent utilizando el constructor UIEvent().
Varias interfaces son descendientes directas o indirectas de esta: MouseEvent, TouchEvent, FocusEvent, KeyboardEvent, WheelEvent, InputEvent y CompositionEvent.
Event UIEventCrea un objeto UIEvent.
Esta interfaz también hereda las propiedades de su padre, Event.
UIEvent.detail Read onlyDevuelve un long con detalles sobre el evento, según el tipo de evento.
UIEvent.sourceCapabilities Read onlyDevuelve una instancia de la interfaz InputDeviceCapabilities, que proporciona información sobre el dispositivo físico responsable de generar un evento táctil.
UIEvent.view Read onlyDevuelve un WindowProxy que contiene la vista que generó el evento.
UIEvent.which Read onlyDevuelve el keyCode numérico de la tecla pulsada, o el código de carácter (charCode) de una tecla alfanumérica pulsada.
Esta interfaz también hereda métodos de su padre, Event.
UIEvent.initUIEvent()Inicializa un objeto UIEvent. Si el evento ya se envió, este método no hace nada.
| UI Events # idl-uievent |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 19 jun 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.