examples/template_stealjs/funcunit/syn/dist/syn.js
function( type, options, element ) { //Everyone Else
				var doc = h.getWindow(element).document || document;
				if ( doc.createEvent ) {
					var event;

					try {

						event = doc.createEvent("KeyEvents");
						event.initKeyEvent(type, true, true, window, options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, options.keyCode, options.charCode);
					}
					catch (e) {
						event = h.createBasicStandardEvent(type, options, doc);
					}
					event.synthetic = true;
					return event;
				}
				else {
					var event;
					try {
						event = h.createEventObject.apply(this, arguments);
						h.extend(event, options)
					}
					catch (e) {}

					return event;
				}
			}
function( type, options, element ) { //Everyone Else
				var doc = h.getWindow(element).document || document;
				if ( doc.createEvent ) {
					var event;

					try {

						event = doc.createEvent("KeyEvents");
						event.initKeyEvent(type, true, true, window, options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, options.keyCode, options.charCode);
					}
					catch (e) {
						event = h.createBasicStandardEvent(type, options, doc);
					}
					event.synthetic = true;
					return event;
				}
				else {
					var event;
					try {
						event = h.createEventObject.apply(this, arguments);
						h.extend(event, options)
					}
					catch (e) {}

					return event;
				}
			}
function ( type , options , element ) { //Everyone Else var doc = h . getWindow ( element ) . document || document ; if ( doc . createEvent ) { var event ; try { event = doc . createEvent ( "KeyEvents" ) ; event . initKeyEvent ( type , true , true , window , options . ctrlKey , options . altKey , options . shiftKey , options . metaKey , options . keyCode , options . charCode ) ; } catch ( e ) { event = h . createBasicStandardEvent ( type , options , doc ) ; } event . synthetic = true ; return event ; } else { var event ; try { event = h . createEventObject . apply ( this , arguments ) ; h . extend ( event , options ) } catch ( e ) { } return event ; } }
creates a key event
creates a key event