| 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 * This class is very much a work in progress, and we'd love to get information | 6 * This class is very much a work in progress, and we'd love to get information |
| 7 * on how we can make this class work with as many international keyboards as | 7 * on how we can make this class work with as many international keyboards as |
| 8 * possible. Bugs welcome! | 8 * possible. Bugs welcome! |
| 9 */ | 9 */ |
| 10 class KeyEvent implements KeyboardEvent { | 10 class KeyEvent implements KeyboardEvent { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 /** True if the altGraphKey is pressed during this event. */ | 52 /** True if the altGraphKey is pressed during this event. */ |
| 53 bool get altGraphKey => _parent.altGraphKey; | 53 bool get altGraphKey => _parent.altGraphKey; |
| 54 bool get bubbles => _parent.bubbles; | 54 bool get bubbles => _parent.bubbles; |
| 55 /** True if this event can be cancelled. */ | 55 /** True if this event can be cancelled. */ |
| 56 bool get cancelable => _parent.cancelable; | 56 bool get cancelable => _parent.cancelable; |
| 57 bool get cancelBubble => _parent.cancelBubble; | 57 bool get cancelBubble => _parent.cancelBubble; |
| 58 void set cancelBubble(bool cancel) { | 58 void set cancelBubble(bool cancel) { |
| 59 _parent.cancelBubble = cancel; | 59 _parent.cancelBubble = cancel; |
| 60 } | 60 } |
| 61 /** Accessor to the clipboardData available for this event. */ | 61 /** Accessor to the clipboardData available for this event. */ |
| 62 Clipboard get clipboardData => _parent.clipboardData; | 62 DataTransfer get clipboardData => _parent.clipboardData; |
| 63 /** True if the ctrl key is pressed during this event. */ | 63 /** True if the ctrl key is pressed during this event. */ |
| 64 bool get ctrlKey => _parent.ctrlKey; | 64 bool get ctrlKey => _parent.ctrlKey; |
| 65 /** Accessor to the target this event is listening to for changes. */ | 65 /** Accessor to the target this event is listening to for changes. */ |
| 66 EventTarget get currentTarget => _parent.currentTarget; | 66 EventTarget get currentTarget => _parent.currentTarget; |
| 67 bool get defaultPrevented => _parent.defaultPrevented; | 67 bool get defaultPrevented => _parent.defaultPrevented; |
| 68 int get detail => _parent.detail; | 68 int get detail => _parent.detail; |
| 69 int get eventPhase => _parent.eventPhase; | 69 int get eventPhase => _parent.eventPhase; |
| 70 /** | 70 /** |
| 71 * Accessor to the part of the keyboard that the key was pressed from (one of | 71 * Accessor to the part of the keyboard that the key was pressed from (one of |
| 72 * KeyLocation.STANDARD, KeyLocation.RIGHT, KeyLocation.LEFT, | 72 * KeyLocation.STANDARD, KeyLocation.RIGHT, KeyLocation.LEFT, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 throw new UnsupportedError("keyIdentifier is unsupported."); | 112 throw new UnsupportedError("keyIdentifier is unsupported."); |
| 113 } | 113 } |
| 114 void $dom_initKeyboardEvent(String type, bool canBubble, bool cancelable, | 114 void $dom_initKeyboardEvent(String type, bool canBubble, bool cancelable, |
| 115 Window view, String keyIdentifier, int keyLocation, bool ctrlKey, | 115 Window view, String keyIdentifier, int keyLocation, bool ctrlKey, |
| 116 bool altKey, bool shiftKey, bool metaKey, | 116 bool altKey, bool shiftKey, bool metaKey, |
| 117 bool altGraphKey) { | 117 bool altGraphKey) { |
| 118 throw new UnsupportedError( | 118 throw new UnsupportedError( |
| 119 "Cannot initialize a KeyboardEvent from a KeyEvent."); | 119 "Cannot initialize a KeyboardEvent from a KeyEvent."); |
| 120 } | 120 } |
| 121 } | 121 } |
| OLD | NEW |