| 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 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 6 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 7 | 7 |
| 8 factory $CLASSNAME(String type, | 8 factory $CLASSNAME(String type, |
| 9 {Window view, bool canBubble: true, bool cancelable: true, | 9 {Window view, bool canBubble: true, bool cancelable: true, |
| 10 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, | 10 String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false, |
| 11 bool altKey: false, bool shiftKey: false, bool metaKey: false, | 11 bool altKey: false, bool shiftKey: false, bool metaKey: false, |
| 12 bool altGraphKey: false}) { | 12 bool altGraphKey: false}) { |
| 13 if (view == null) { | 13 if (view == null) { |
| 14 view = window; | 14 view = window; |
| 15 } | 15 } |
| 16 final e = document.$dom_createEvent("KeyboardEvent"); | 16 final e = document.$dom_createEvent("KeyboardEvent"); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 | 41 |
| 42 @DomName('KeyboardEvent.keyCode') | 42 @DomName('KeyboardEvent.keyCode') |
| 43 int get keyCode => $dom_keyCode; | 43 int get keyCode => $dom_keyCode; |
| 44 | 44 |
| 45 @DomName('KeyboardEvent.charCode') | 45 @DomName('KeyboardEvent.charCode') |
| 46 int get charCode => $dom_charCode; | 46 int get charCode => $dom_charCode; |
| 47 $!MEMBERS | 47 $!MEMBERS |
| 48 } | 48 } |
| OLD | NEW |