| Index: tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate
|
| diff --git a/tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate
|
| index 23e22bf601e94a59527aa4d1d52ebf6779eecdb7..c1c7292ccc5719c6da6b008320ac41b0e70a3919 100644
|
| --- a/tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate
|
| +++ b/tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate
|
| @@ -27,20 +27,21 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
|
| factory $CLASSNAME(String type,
|
| {Window view, bool canBubble: true, bool cancelable: true,
|
| int keyLocation: 1, bool ctrlKey: false,
|
| - bool altKey: false, bool shiftKey: false, bool metaKey: false}) {
|
| + bool altKey: false, bool shiftKey: false, bool metaKey: false,
|
| + bool altGraphKey: false}) {
|
| if (view == null) {
|
| view = window;
|
| }
|
| final e = document._createEvent("KeyboardEvent");
|
| e._initKeyboardEvent(type, canBubble, cancelable, view, "",
|
| - keyLocation, ctrlKey, altKey, shiftKey, metaKey);
|
| + keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
|
| return e;
|
| }
|
|
|
| @DomName('KeyboardEvent.initKeyboardEvent')
|
| void _initKeyboardEvent(String type, bool canBubble, bool cancelable,
|
| Window view, String keyIdentifier, int keyLocation, bool ctrlKey,
|
| - bool altKey, bool shiftKey, bool metaKey) {
|
| + bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) {
|
| if (JS('bool', 'typeof(#.initKeyEvent) == "function"', this)) {
|
| // initKeyEvent is only in Firefox (instead of initKeyboardEvent). It has
|
| // a slightly different signature, and allows you to specify keyCode and
|
| @@ -51,9 +52,9 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
|
| ctrlKey, altKey, shiftKey, metaKey);
|
| } else {
|
| // initKeyboardEvent is for all other browsers.
|
| - JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #)', this,
|
| + JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #, #)', this,
|
| type, canBubble, cancelable, view, keyIdentifier, keyLocation,
|
| - ctrlKey, altKey, shiftKey, metaKey);
|
| + ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
|
| }
|
| }
|
|
|
|
|