KeyEvent factory constructor
KeyEvent(Programmatically create a new KeyEvent (and KeyboardEvent).
Source
factory KeyEvent(String type, {Window view, bool canBubble: true, bool cancelable: true, int keyCode: 0, int charCode: 0, int keyLocation: 1, bool ctrlKey: false, bool altKey: false, bool shiftKey: false, bool metaKey: false, EventTarget currentTarget}) { var parent = new KeyboardEvent(type, view: view, canBubble: canBubble, cancelable: cancelable, keyLocation: keyLocation, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey); var keyEvent = new KeyEvent.wrap(parent); keyEvent._shadowAltKey = altKey; keyEvent._shadowCharCode = charCode; keyEvent._shadowKeyCode = keyCode; keyEvent._currentTarget = currentTarget == null ? window : currentTarget; return keyEvent; }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/KeyEvent/KeyEvent.html