| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index 213e447052a0983acf2315db0bdd049b9d5be59d..b7fca7421e3f5abdac67561e47f6f5d8464d7e66 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -15854,11 +15854,14 @@ class JavaScriptCallFrame extends NativeFieldWrapperClass1 {
|
| @DomName('KeyboardEvent')
|
| class KeyboardEvent extends UIEvent {
|
|
|
| - factory KeyboardEvent(String type, Window view,
|
| - [bool canBubble = true, bool cancelable = true,
|
| - String keyIdentifier = "", int keyLocation = 1, bool ctrlKey = false,
|
| - bool altKey = false, bool shiftKey = false, bool metaKey = false,
|
| - bool altGraphKey = false]) {
|
| + factory KeyboardEvent(String type,
|
| + {Window view, bool canBubble: true, bool cancelable: true,
|
| + String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false,
|
| + bool altKey: false, bool shiftKey: false, bool metaKey: false,
|
| + bool altGraphKey: false}) {
|
| + if (view == null) {
|
| + view = window;
|
| + }
|
| final e = document.$dom_createEvent("KeyboardEvent");
|
| e.$dom_initKeyboardEvent(type, canBubble, cancelable, view, keyIdentifier,
|
| keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
|
|
|