| Index: tools/dom/templates/html/dartium/impl_KeyboardEvent.darttemplate
|
| diff --git a/tools/dom/templates/html/dartium/impl_KeyboardEvent.darttemplate b/tools/dom/templates/html/dartium/impl_KeyboardEvent.darttemplate
|
| index ff542eb7078326cfaaf971162c07e24c26502d10..2f30bd1c63a5f31b4945b26e336b9066c52aab13 100644
|
| --- a/tools/dom/templates/html/dartium/impl_KeyboardEvent.darttemplate
|
| +++ b/tools/dom/templates/html/dartium/impl_KeyboardEvent.darttemplate
|
| @@ -6,11 +6,14 @@ part of $LIBRARYNAME;
|
|
|
| $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
|
|
| - factory $CLASSNAME(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 $CLASSNAME(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);
|
|
|