| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 | 5 |
| 6 /** |
| 7 * An event that describes user interaction with the keyboard. |
| 8 * |
| 9 * The [type] of the event identifies what kind of interaction occurred. |
| 10 * |
| 11 * See also: |
| 12 * |
| 13 * * [KeyboardEvent](https://developer.mozilla.org/en/DOM/KeyboardEvent) at MDN. |
| 14 */ |
| 6 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 15 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 7 | 16 |
| 8 factory $CLASSNAME(String type, | 17 factory $CLASSNAME(String type, |
| 9 {Window view, bool canBubble: true, bool cancelable: true, | 18 {Window view, bool canBubble: true, bool cancelable: true, |
| 10 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, | 19 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, |
| 11 bool altKey: false, bool shiftKey: false, bool metaKey: false, | 20 bool altKey: false, bool shiftKey: false, bool metaKey: false, |
| 12 bool altGraphKey: false}) { | 21 bool altGraphKey: false}) { |
| 13 if (view == null) { | 22 if (view == null) { |
| 14 view = window; | 23 view = window; |
| 15 } | 24 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 39 } | 48 } |
| 40 } | 49 } |
| 41 | 50 |
| 42 @DomName('KeyboardEvent.keyCode') | 51 @DomName('KeyboardEvent.keyCode') |
| 43 int get keyCode => $dom_keyCode; | 52 int get keyCode => $dom_keyCode; |
| 44 | 53 |
| 45 @DomName('KeyboardEvent.charCode') | 54 @DomName('KeyboardEvent.charCode') |
| 46 int get charCode => $dom_charCode; | 55 int get charCode => $dom_charCode; |
| 47 $!MEMBERS | 56 $!MEMBERS |
| 48 } | 57 } |
| OLD | NEW |