This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14052 - Need a spec for KeyboardEvent constructor
Summary: Need a spec for KeyboardEvent constructor
Status: RESOLVED LATER
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - DOM3 Events (show other bugs)
Version: unspecified
Hardware: PC All
: P3 enhancement
Target Milestone: ---
Assignee: Travis Leithead [MSFT]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords: 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

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.)