| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 38e456c505b4dfeba5639d07c378c20bc9700e58..5ee4985d13f548775464ec5a716a92bbee77997d 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -14467,16 +14467,26 @@ class InputMethodContext extends Interceptor native "InputMethodContext" {
|
| @DomName('KeyboardEvent')
|
| class KeyboardEvent extends UIEvent native "KeyboardEvent" {
|
|
|
| + /**
|
| + * Programmatically create a KeyboardEvent.
|
| + *
|
| + * Due to browser differences, keyCode, charCode, or keyIdentifier values
|
| + * cannot be specified in this base level constructor. This constructor
|
| + * enables the user to programmatically create and dispatch a [KeyboardEvent],
|
| + * but it will not contain any particular key content. For programmatically
|
| + * creating keyboard events with specific key value contents, see the custom
|
| + * Event [KeyEvent].
|
| + */
|
| factory KeyboardEvent(String type,
|
| {Window view, bool canBubble: true, bool cancelable: true,
|
| - String keyIdentifier: "", int keyLocation: 1, bool ctrlKey: false,
|
| + 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,
|
| + e.$dom_initKeyboardEvent(type, canBubble, cancelable, view, "",
|
| keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey);
|
| return e;
|
| }
|
|
|