Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: Source/core/dom/KeyboardEvent.idl

Issue 20986003: Define DOM_KEY_LOCATION_* constants on KeyboardEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/KeyboardEvent.idl
diff --git a/Source/core/dom/KeyboardEvent.idl b/Source/core/dom/KeyboardEvent.idl
index cda219fa046a5e9267bf90a8bc30adc1e560042e..dd76eb9c838d15ff1305300a3eb0958a6e5ae8f5 100644
--- a/Source/core/dom/KeyboardEvent.idl
+++ b/Source/core/dom/KeyboardEvent.idl
@@ -21,6 +21,12 @@
[
ConstructorTemplate=Event
] interface KeyboardEvent : UIEvent {
+ const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00;
+ const unsigned long DOM_KEY_LOCATION_LEFT = 0x01;
+ const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02;
+ const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03;
+ const unsigned long DOM_KEY_LOCATION_MOBILE = 0x04;
+ const unsigned long DOM_KEY_LOCATION_JOYSTICK = 0x05;
[InitializedByEventConstructor] readonly attribute DOMString keyIdentifier;
[InitializedByEventConstructor] readonly attribute unsigned long keyLocation;
Mike West 2013/07/29 12:40:24 This isn't really related to this CL, as it's exis
do-not-use 2013/07/29 12:49:11 I am already addressing this in: https://coderevie

Powered by Google App Engine
This is Rietveld 408576698