| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 [ | 21 [ |
| 22 Constructor(DOMString type, optional KeyboardEventInit eventInitDict), | 22 Constructor(DOMString type, optional KeyboardEventInit eventInitDict), |
| 23 ConstructorCallWith=ScriptState, | 23 ConstructorCallWith=ScriptState, |
| 24 ] interface KeyboardEvent : UIEvent { | 24 ] interface KeyboardEvent : UIEvent { |
| 25 const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00; | 25 const unsigned long DOM_KEY_LOCATION_STANDARD = 0x00; |
| 26 const unsigned long DOM_KEY_LOCATION_LEFT = 0x01; | 26 const unsigned long DOM_KEY_LOCATION_LEFT = 0x01; |
| 27 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02; | 27 const unsigned long DOM_KEY_LOCATION_RIGHT = 0x02; |
| 28 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03; | 28 const unsigned long DOM_KEY_LOCATION_NUMPAD = 0x03; |
| 29 | 29 |
| 30 [RuntimeEnabled=KeyboardEventCode] readonly attribute DOMString code; | 30 [RuntimeEnabled=KeyboardEventCode] readonly attribute DOMString code; |
| 31 [RuntimeEnabled=KeyboardEventKey] readonly attribute DOMString key; |
| 31 readonly attribute DOMString keyIdentifier; | 32 readonly attribute DOMString keyIdentifier; |
| 32 readonly attribute unsigned long location; | 33 readonly attribute unsigned long location; |
| 33 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation] readonly attr
ibute unsigned long keyLocation; // Deprecated. | 34 [ImplementedAs=location, DeprecateAs=KeyboardEventKeyLocation] readonly attr
ibute unsigned long keyLocation; // Deprecated. |
| 34 readonly attribute boolean ctrlKey; | 35 readonly attribute boolean ctrlKey; |
| 35 readonly attribute boolean shiftKey; | 36 readonly attribute boolean shiftKey; |
| 36 readonly attribute boolean altKey; | 37 readonly attribute boolean altKey; |
| 37 readonly attribute boolean metaKey; | 38 readonly attribute boolean metaKey; |
| 38 readonly attribute boolean repeat; | 39 readonly attribute boolean repeat; |
| 39 | 40 |
| 40 boolean getModifierState(DOMString keyArgument); | 41 boolean getModifierState(DOMString keyArgument); |
| 41 | 42 |
| 42 // FIXME: this does not match the version in the DOM spec. | 43 // FIXME: this does not match the version in the DOM spec. |
| 43 [CallWith=ScriptState] void initKeyboardEvent([Default=Undefined] optional D
OMString type, | 44 [CallWith=ScriptState] void initKeyboardEvent([Default=Undefined] optional D
OMString type, |
| 44 [Default=Undefined] optional boolean canBubble, | 45 [Default=Undefined] optional boolean canBubble, |
| 45 [Default=Undefined] optional boolean cancelable, | 46 [Default=Undefined] optional boolean cancelable, |
| 46 [Default=Undefined] optional Window view, | 47 [Default=Undefined] optional Window view, |
| 47 [Default=Undefined] optional DOMString keyIdentifier, | 48 [Default=Undefined] optional DOMString keyIdentifier, |
| 48 [Default=Undefined] optional unsigned long location, | 49 [Default=Undefined] optional unsigned long location, |
| 49 [Default=Undefined] optional boolean ctrlKey, | 50 [Default=Undefined] optional boolean ctrlKey, |
| 50 [Default=Undefined] optional boolean altKey, | 51 [Default=Undefined] optional boolean altKey, |
| 51 [Default=Undefined] optional boolean shiftKey, | 52 [Default=Undefined] optional boolean shiftKey, |
| 52 [Default=Undefined] optional boolean metaKey); | 53 [Default=Undefined] optional boolean metaKey); |
| 53 | 54 |
| 54 readonly attribute long charCode; | 55 readonly attribute long charCode; |
| 55 readonly attribute long keyCode; | 56 readonly attribute long keyCode; |
| 56 readonly attribute long which; | 57 readonly attribute long which; |
| 57 }; | 58 }; |
| OLD | NEW |