mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Implement MouseEvent buttons attribute
This commit is contained in:
parent
425686984d
commit
be3cb00c77
10 changed files with 111 additions and 36 deletions
|
@ -17,7 +17,7 @@ interface MouseEvent : UIEvent {
|
|||
readonly attribute short button;
|
||||
readonly attribute EventTarget? relatedTarget;
|
||||
// Introduced in DOM Level 3
|
||||
//readonly attribute unsigned short buttons;
|
||||
readonly attribute unsigned short buttons;
|
||||
//boolean getModifierState (DOMString keyArg);
|
||||
|
||||
[Pref="dom.mouseevent.which.enabled"]
|
||||
|
@ -31,7 +31,7 @@ dictionary MouseEventInit : EventModifierInit {
|
|||
long clientX = 0;
|
||||
long clientY = 0;
|
||||
short button = 0;
|
||||
//unsigned short buttons = 0;
|
||||
unsigned short buttons = 0;
|
||||
EventTarget? relatedTarget = null;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue