| OLD | NEW |
| 1 /** | 1 /** |
| 2 * A custom KeyboardEvent that attempts to eliminate cross-browser | 2 * A custom KeyboardEvent that attempts to eliminate cross-browser |
| 3 * inconsistencies, and also provide both keyCode and charCode information | 3 * inconsistencies, and also provide both keyCode and charCode information |
| 4 * for all key events (when such information can be determined). | 4 * for all key events (when such information can be determined). |
| 5 * | 5 * |
| 6 * KeyEvent tries to provide a higher level, more polished keyboard event | 6 * KeyEvent tries to provide a higher level, more polished keyboard event |
| 7 * information on top of the "raw" [KeyboardEvent]. | 7 * information on top of the "raw" [KeyboardEvent]. |
| 8 * | 8 * |
| 9 * This class is very much a work in progress, and we'd love to get information | 9 * This class is very much a work in progress, and we'd love to get information |
| 10 * on how we can make this class work with as many international keyboards as | 10 * on how we can make this class work with as many international keyboards as |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 String get _keyIdentifier { | 122 String get _keyIdentifier { |
| 123 throw new UnsupportedError("keyIdentifier is unsupported."); | 123 throw new UnsupportedError("keyIdentifier is unsupported."); |
| 124 } | 124 } |
| 125 void _initKeyboardEvent(String type, bool canBubble, bool cancelable, | 125 void _initKeyboardEvent(String type, bool canBubble, bool cancelable, |
| 126 Window view, String keyIdentifier, int keyLocation, bool ctrlKey, | 126 Window view, String keyIdentifier, int keyLocation, bool ctrlKey, |
| 127 bool altKey, bool shiftKey, bool metaKey, | 127 bool altKey, bool shiftKey, bool metaKey, |
| 128 bool altGraphKey) { | 128 bool altGraphKey) { |
| 129 throw new UnsupportedError( | 129 throw new UnsupportedError( |
| 130 "Cannot initialize a KeyboardEvent from a KeyEvent."); | 130 "Cannot initialize a KeyboardEvent from a KeyEvent."); |
| 131 } | 131 } |
| 132 int get _layerX => throw new UnsupportedError('Not applicable to KeyEvent'); |
| 133 int get _layerY => throw new UnsupportedError('Not applicable to KeyEvent'); |
| 134 int get _pageX => throw new UnsupportedError('Not applicable to KeyEvent'); |
| 135 int get _pageY => throw new UnsupportedError('Not applicable to KeyEvent'); |
| 136 @Experimental() // untriaged |
| 137 bool getModifierState(String keyArgument) => throw new UnimplementedError(); |
| 138 @Experimental() // untriaged |
| 139 int get location => throw new UnimplementedError(); |
| 140 @Experimental() // untriaged |
| 141 bool get repeat => throw new UnimplementedError(); |
| 142 dynamic get _get_view => throw new UnimplementedError(); |
| 132 } | 143 } |
| OLD | NEW |