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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 String get _keyIdentifier { | 203 String get _keyIdentifier { |
204 throw new UnsupportedError("keyIdentifier is unsupported."); | 204 throw new UnsupportedError("keyIdentifier is unsupported."); |
205 } | 205 } |
206 void _initKeyboardEvent(String type, bool canBubble, bool cancelable, | 206 void _initKeyboardEvent(String type, bool canBubble, bool cancelable, |
207 Window view, String keyIdentifier, int keyLocation, bool ctrlKey, | 207 Window view, String keyIdentifier, int keyLocation, bool ctrlKey, |
208 bool altKey, bool shiftKey, bool metaKey, | 208 bool altKey, bool shiftKey, bool metaKey, |
209 bool altGraphKey) { | 209 bool altGraphKey) { |
210 throw new UnsupportedError( | 210 throw new UnsupportedError( |
211 "Cannot initialize a KeyboardEvent from a KeyEvent."); | 211 "Cannot initialize a KeyboardEvent from a KeyEvent."); |
212 } | 212 } |
| 213 int get _layerX => throw new UnsupportedError('Not applicable to KeyEvent'); |
| 214 int get _layerY => throw new UnsupportedError('Not applicable to KeyEvent'); |
| 215 int get _pageX => throw new UnsupportedError('Not applicable to KeyEvent'); |
| 216 int get _pageY => throw new UnsupportedError('Not applicable to KeyEvent'); |
| 217 @Experimental() // untriaged |
| 218 bool getModifierState(String keyArgument) => throw new UnimplementedError(); |
| 219 @Experimental() // untriaged |
| 220 int get location => throw new UnimplementedError(); |
| 221 @Experimental() // untriaged |
| 222 bool get repeat => throw new UnimplementedError(); |
| 223 dynamic get _get_view => throw new UnimplementedError(); |
213 } | 224 } |
OLD | NEW |