MouseEvent Interface
MouseEvent
represents events that occur due to the user interacting with a pointing device (such as a mouse). It's represented by the nsINSDOMMouseEvent
interface, which extends the nsIDOMMouseEvent
interface.
Extends
Subinterfaces
Constructors
Code new MouseEvent(String type, Window view, int detail, int screenX, int screenY, int clientX, int clientY, int button, [bool canBubble, bool cancelable, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, EventTarget relatedTarget]) #
MouseEvent(String type, Window view, int detail, int screenX, int screenY, int clientX, int clientY, int button, [bool canBubble, bool cancelable, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, EventTarget relatedTarget]);
Methods
Code void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) #
void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget);
Fields
Code final bool altKey #
true
if the alt key was down when the mouse event was fired. Read only.
final bool altKey;
Code final int button #
final int button;
Code final int clientX #
final int clientX;
Code final int clientY #
final int clientY;
Code final bool ctrlKey #
true
if the control key was down when the mouse event was fired. Read only.
final bool ctrlKey;
Code final bool metaKey #
true
if the meta key was down when the mouse event was fired. Read only.
final bool metaKey;
Code final EventTarget relatedTarget #
final EventTarget relatedTarget;
Code final int screenX #
final int screenX;
Code final int screenY #
final int screenY;
Code final bool shiftKey #
true
if the shift key was down when the mouse event was fired. Read only.
final bool shiftKey;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.