W3cubDocs

/Dart 2

KeyEvent.wrap constructor

KeyEvent.wrap(KeyboardEvent parent)

Construct a KeyEvent with parent as the event we're emulating.

Implementation

KeyEvent.wrap(KeyboardEvent parent) : super(parent) {
  _parent = parent;
  _shadowAltKey = _realAltKey;
  _shadowCharCode = _realCharCode;
  _shadowKeyCode = _realKeyCode;
  _currentTarget = _parent.currentTarget;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-html/KeyEvent/KeyEvent.wrap.html