import { SyntheticKeyboardEvent } from '../../SyntheticKeyboardEvent'; import { NativeEvent } from './NativeEvent'; export class NativeKeyboardEvent extends NativeEvent { static map(e: any) { const key = e.keyCode || e.which; return new SyntheticKeyboardEvent(key, String.fromCharCode(key), NativeEvent.convertModifiers(e)); } static readonly target = SyntheticKeyboardEvent; }