Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard Schoen richardschoen

View GitHub Profile
@termi
termi / crossBrowser_initKeyboardEvent.js
Last active Aug 15, 2021
Cross-browser initKeyboardEvent
View crossBrowser_initKeyboardEvent.js
void function() {//closure
var global = this
, _initKeyboardEvent_type = (function( e ) {
try {
e.initKeyboardEvent(
"keyup" // in DOMString typeArg
, false // in boolean canBubbleArg
, false // in boolean cancelableArg
, global // in views::AbstractView viewArg