Skip to content

Instantly share code, notes, and snippets.

@gossi
Created May 3, 2019 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gossi/ba2d8dac0a7e1f7910da288a7b4542de to your computer and use it in GitHub Desktop.
Save gossi/ba2d8dac0a7e1f7910da288a7b4542de to your computer and use it in GitHub Desktop.
Event Support: CompatibleInputEvent
/**
* A normalized event from InputEvent and KeyboardEvent that works from ie11
* over modern browsers to android browsers (because that beast is worse than ie6)
*/
export interface CompatibleInputEvent {
data?: string;
inputType?: string;
navigationType?: string;
originalEvent: KeyboardEvent | InputEvent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment