mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:07:44 +00:00
LibWeb: Add the missing KeyboardEvent IDL constructor
This commit also does a bit of general cleanup on the header file.
This commit is contained in:
parent
c5b924b1e6
commit
f74b612aa4
5 changed files with 99 additions and 35 deletions
|
@ -1,8 +1,9 @@
|
|||
#import <UIEvents/EventModifier.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
interface KeyboardEvent : UIEvent {
|
||||
|
||||
// FIXME: Implement this.
|
||||
// constructor(DOMString type, optional KeyboardEventInit eventInitDict = {});
|
||||
constructor(DOMString type, optional KeyboardEventInit eventInitDict = {});
|
||||
|
||||
// KeyLocationCode
|
||||
const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
|
||||
|
@ -28,3 +29,13 @@ interface KeyboardEvent : UIEvent {
|
|||
boolean getModifierState(DOMString keyArg);
|
||||
|
||||
};
|
||||
|
||||
dictionary KeyboardEventInit : EventModifierInit {
|
||||
DOMString key = "";
|
||||
DOMString code = "";
|
||||
unsigned long location = 0;
|
||||
boolean repeat = false;
|
||||
boolean isComposing = false;
|
||||
unsigned long charCode = 0;
|
||||
unsigned long keyCode = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue