Bug 14052 - Need a spec for KeyboardEvent constructor
Need a spec for KeyboardEvent constructor
Status: RESOLVED LATER
Product: WebAppsWG
Classification: Unclassified
Component: DOM3 Events
unspecified
PC All
: P3 enhancement
: ---
Assigned To: Travis Leithead [MSFT]
public-webapps-bugzilla
: needsReview
Depends on: 14051
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-06 18:40 UTC by Kentaro Hara
Modified: 2012-03-19 19:32 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2011-09-06 18:40:35 UTC
Background: We are planning to make all Events constructible. For example,
CustomEvent already has the spec for its constructor
(http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#interface-customevent).

We propose a spec for KeyboardEvent constructor as follows:

dictionary KeyboardEventInit : UIEventInit {
  DOMString char;
  DOMString key;
  unsigned long location;
  boolean ctrlKey;
  boolean shiftKey;
  boolean altKey;
  boolean metaKey;
  boolean repeat;
  DOMString locale;
}
Comment 1 Kentaro Hara 2011-09-27 13:42:09 UTC
Correction:

[Constructor(DOMString type, optional KeyboardEventInit eventInitDict)]
interface KeyboardEvent : UIEvent {
  ...
}

dictionary KeyboardEventInit : UIEventInit {
  DOMString char;
  DOMString key;
  unsigned long location;
  boolean ctrlKey;
  boolean shiftKey;
  boolean altKey;
  boolean metaKey;
  boolean repeat;
  DOMString locale;
}
Comment 2 Travis Leithead [MSFT] 2012-03-08 21:16:53 UTC
Assigning to myself to take action on these open bugs.
Comment 3 Travis Leithead [MSFT] 2012-03-09 01:19:36 UTC
Assigned to me; pri 3 (excluding the tracking bug), and sev: enhancement
Comment 4 Travis Leithead [MSFT] 2012-03-19 19:32:23 UTC
(Resolving dependent bugs based on 14051.)