description

# KeyEvent.wrap constructor

KeyEvent.wrap(

1. KeyboardEvent parent

)

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

## Implementation

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