| 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  * The mechanics of using KeyEvents is a little different from the underlying | 9  * The mechanics of using KeyEvents is a little different from the underlying | 
| 10  * [KeyboardEvent]. To use KeyEvents, you need to create a stream and then add | 10  * [KeyboardEvent]. To use KeyEvents, you need to create a stream and then add | 
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 106   /** Accessor to provide a stream of KeyEvents on the desired target. */ | 106   /** Accessor to provide a stream of KeyEvents on the desired target. */ | 
| 107   static EventStreamProvider<KeyEvent> keyUpEvent = | 107   static EventStreamProvider<KeyEvent> keyUpEvent = | 
| 108     new _KeyboardEventHandler('keyup'); | 108     new _KeyboardEventHandler('keyup'); | 
| 109   /** Accessor to provide a stream of KeyEvents on the desired target. */ | 109   /** Accessor to provide a stream of KeyEvents on the desired target. */ | 
| 110   static EventStreamProvider<KeyEvent> keyPressEvent = | 110   static EventStreamProvider<KeyEvent> keyPressEvent = | 
| 111     new _KeyboardEventHandler('keypress'); | 111     new _KeyboardEventHandler('keypress'); | 
| 112 | 112 | 
| 113   /** The currently registered target for this event. */ | 113   /** The currently registered target for this event. */ | 
| 114   EventTarget get currentTarget => _currentTarget; | 114   EventTarget get currentTarget => _currentTarget; | 
| 115 | 115 | 
| 116   /** Accessor to the clipboardData available for this event. */ |  | 
| 117   DataTransfer get clipboardData => _parent.clipboardData; |  | 
| 118   /** True if the ctrl key is pressed during this event. */ | 116   /** True if the ctrl key is pressed during this event. */ | 
| 119   bool get ctrlKey => _parent.ctrlKey; | 117   bool get ctrlKey => _parent.ctrlKey; | 
| 120   int get detail => _parent.detail; | 118   int get detail => _parent.detail; | 
| 121   /** | 119   /** | 
| 122    * Accessor to the part of the keyboard that the key was pressed from (one of | 120    * Accessor to the part of the keyboard that the key was pressed from (one of | 
| 123    * KeyLocation.STANDARD, KeyLocation.RIGHT, KeyLocation.LEFT, | 121    * KeyLocation.STANDARD, KeyLocation.RIGHT, KeyLocation.LEFT, | 
| 124    * KeyLocation.NUMPAD, KeyLocation.MOBILE, KeyLocation.JOYSTICK). | 122    * KeyLocation.NUMPAD, KeyLocation.MOBILE, KeyLocation.JOYSTICK). | 
| 125    */ | 123    */ | 
| 126   int get keyLocation => _parent.keyLocation; | 124   int get keyLocation => _parent.keyLocation; | 
| 127   /** True if the Meta (or Mac command) key is pressed during this event. */ | 125   /** True if the Meta (or Mac command) key is pressed during this event. */ | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 148         "Cannot initialize a KeyboardEvent from a KeyEvent."); | 146         "Cannot initialize a KeyboardEvent from a KeyEvent."); | 
| 149   } | 147   } | 
| 150   @Experimental() // untriaged | 148   @Experimental() // untriaged | 
| 151   bool getModifierState(String keyArgument) => throw new UnimplementedError(); | 149   bool getModifierState(String keyArgument) => throw new UnimplementedError(); | 
| 152   @Experimental() // untriaged | 150   @Experimental() // untriaged | 
| 153   int get location => throw new UnimplementedError(); | 151   int get location => throw new UnimplementedError(); | 
| 154   @Experimental() // untriaged | 152   @Experimental() // untriaged | 
| 155   bool get repeat => throw new UnimplementedError(); | 153   bool get repeat => throw new UnimplementedError(); | 
| 156   dynamic get _get_view => throw new UnimplementedError(); | 154   dynamic get _get_view => throw new UnimplementedError(); | 
| 157 } | 155 } | 
| OLD | NEW | 
|---|