mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add KeyboardEvent stub.
This commit is contained in:
parent
1c64dabb15
commit
bb7074698a
9 changed files with 122 additions and 24 deletions
|
@ -22,15 +22,11 @@ interface MouseEvent : UIEvent {
|
|||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-MouseEventInit
|
||||
dictionary MouseEventInit : UIEventInit {
|
||||
dictionary MouseEventInit : SharedKeyboardAndMouseEventInit {
|
||||
long screenX = 0;
|
||||
long screenY = 0;
|
||||
long clientX = 0;
|
||||
long clientY = 0;
|
||||
boolean ctrlKey = false;
|
||||
boolean shiftKey = false;
|
||||
boolean altKey = false;
|
||||
boolean metaKey = false;
|
||||
short button = 0;
|
||||
//unsigned short buttons = 0;
|
||||
EventTarget? relatedTarget = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue