| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 interface KeyboardEvent extends UIEvent { | 7 interface KeyboardEvent extends UIEvent { |
| 8 | 8 |
| 9 static final int KEY_LOCATION_LEFT = 0x01; | |
| 10 | |
| 11 static final int KEY_LOCATION_NUMPAD = 0x03; | |
| 12 | |
| 13 static final int KEY_LOCATION_RIGHT = 0x02; | |
| 14 | |
| 15 static final int KEY_LOCATION_STANDARD = 0x00; | |
| 16 | |
| 17 bool get altGraphKey(); | 9 bool get altGraphKey(); |
| 18 | 10 |
| 19 bool get altKey(); | 11 bool get altKey(); |
| 20 | 12 |
| 21 bool get ctrlKey(); | 13 bool get ctrlKey(); |
| 22 | 14 |
| 23 String get keyIdentifier(); | 15 String get keyIdentifier(); |
| 24 | 16 |
| 25 int get keyLocation(); | 17 int get keyLocation(); |
| 26 | 18 |
| 27 bool get metaKey(); | 19 bool get metaKey(); |
| 28 | 20 |
| 29 bool get shiftKey(); | 21 bool get shiftKey(); |
| 30 | 22 |
| 31 bool getModifierState(String keyIdentifierArg); | |
| 32 | |
| 33 void initKeyboardEvent(String type, bool canBubble, bool cancelable, DOMWindow
view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh
iftKey, bool metaKey, bool altGraphKey); | 23 void initKeyboardEvent(String type, bool canBubble, bool cancelable, DOMWindow
view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh
iftKey, bool metaKey, bool altGraphKey); |
| 34 } | 24 } |
| 35 | 25 |
| 36 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 26 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 37 // for details. All rights reserved. Use of this source code is governed by a | 27 // for details. All rights reserved. Use of this source code is governed by a |
| 38 // BSD-style license that can be found in the LICENSE file. | 28 // BSD-style license that can be found in the LICENSE file. |
| 39 | 29 |
| 40 /** | 30 /** |
| 41 * Defines the standard key locations returned by | 31 * Defines the standard key locations returned by |
| 42 * KeyboardEvent.getKeyLocation. | 32 * KeyboardEvent.getKeyLocation. |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 * Sound) key | 551 * Sound) key |
| 562 */ | 552 */ |
| 563 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; | 553 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; |
| 564 | 554 |
| 565 /** | 555 /** |
| 566 * Key value used when an implementation is unable to identify another key | 556 * Key value used when an implementation is unable to identify another key |
| 567 * value, due to either hardware, platform, or software constraints | 557 * value, due to either hardware, platform, or software constraints |
| 568 */ | 558 */ |
| 569 static final String UNIDENTIFIED = "Unidentified"; | 559 static final String UNIDENTIFIED = "Unidentified"; |
| 570 } | 560 } |
| OLD | NEW |