Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. UIEvent

UIEvent

TheUIEvent interface represents simple user interface events. It is part of theUI Events API, which includes various event types and interfaces related to user interactions.

UIEvent derives fromEvent. Although theUIEvent.initUIEvent() method is kept for backward compatibility, you should create aUIEvent object using theUIEvent() constructor.

Several interfaces are direct or indirect descendants of this one:MouseEvent,TouchEvent,FocusEvent,KeyboardEvent,WheelEvent,InputEvent, andCompositionEvent.

Event UIEvent

Constructors

UIEvent()

Creates aUIEvent object.

Instance properties

This interface also inherits properties of its parent,Event.

UIEvent.detailRead only

Returns along with details about the event, depending on the event type.

UIEvent.sourceCapabilitiesExperimentalRead only

Returns an instance of theInputDeviceCapabilities interface, which provides information about the physical device responsible for generating a touch event.

UIEvent.viewRead only

Returns aWindowProxy that contains the view that generated the event.

UIEvent.whichDeprecatedRead only

Returns the numerickeyCode of the key pressed, or the character code (charCode) for an alphanumeric key pressed.

Instance methods

This interface also inherits methods of its parent,Event.

UIEvent.initUIEvent()Deprecated

Initializes aUIEvent object. If the event has already been dispatched, this method does nothing.

Specifications

Specification
UI Events
# idl-uievent

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp