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 /** | 6 /** |
7 * An event that describes user interaction with the keyboard. | 7 * An event that describes user interaction with the keyboard. |
8 * | 8 * |
9 * The [type] of the event identifies what kind of interaction occurred. | 9 * The [type] of the event identifies what kind of interaction occurred. |
10 * | 10 * |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ctrlKey, altKey, shiftKey, metaKey); | 58 ctrlKey, altKey, shiftKey, metaKey); |
59 } else { | 59 } else { |
60 // initKeyboardEvent is for all other browsers. | 60 // initKeyboardEvent is for all other browsers. |
61 JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #)', this, | 61 JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #)', this, |
62 type, canBubble, cancelable, view, keyIdentifier, location, | 62 type, canBubble, cancelable, view, keyIdentifier, location, |
63 ctrlKey, altKey, shiftKey, metaKey); | 63 ctrlKey, altKey, shiftKey, metaKey); |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 @DomName('KeyboardEvent.keyCode') | 67 @DomName('KeyboardEvent.keyCode') |
68 int get keyCode => _keyCode; | 68 final int keyCode; |
69 | 69 |
70 @DomName('KeyboardEvent.charCode') | 70 @DomName('KeyboardEvent.charCode') |
71 int get charCode => _charCode; | 71 final int charCode; |
72 | 72 |
73 @DomName('KeyboardEvent.which') | 73 @DomName('KeyboardEvent.which') |
74 int get which => _which; | 74 int get which => _which; |
75 $!MEMBERS | 75 $!MEMBERS |
76 } | 76 } |
OLD | NEW |