site/examples/resources/funcunit.js
function( type, options, element ) {
				//check if options is character or has character
				options = typeof options != "object" ? {
					character: options
				} : options;

				//don't change the orignial
				options = h.extend({}, options)
				if ( options.character ) {
					h.extend(options, Syn.key.options(options.character, type));
					delete options.character;
				}

				options = h.extend({
					ctrlKey: !! Syn.key.ctrlKey,
					altKey: !! Syn.key.altKey,
					shiftKey: !! Syn.key.shiftKey,
					metaKey: !! Syn.key.metaKey
				}, options)

				return options;
			}
function( type, options, element ) {
				//check if options is character or has character
				options = typeof options != "object" ? {
					character: options
				} : options;

				//don't change the orignial
				options = h.extend({}, options)
				if ( options.character ) {
					h.extend(options, Syn.key.options(options.character, type));
					delete options.character;
				}

				options = h.extend({
					ctrlKey: !! Syn.key.ctrlKey,
					altKey: !! Syn.key.altKey,
					shiftKey: !! Syn.key.shiftKey,
					metaKey: !! Syn.key.metaKey
				}, options)

				return options;
			}
function ( type , options , element ) { //check if options is character or has character options = typeof options != "object" ? { character : options } : options ; //don't change the orignial options = h . extend ( { } , options ) if ( options . character ) { h . extend ( options , Syn . key . options ( options . character , type ) ) ; delete options . character ; } options = h . extend ( { ctrlKey : ! ! Syn . key . ctrlKey , altKey : ! ! Syn . key . altKey , shiftKey : ! ! Syn . key . shiftKey , metaKey : ! ! Syn . key . metaKey } , options ) return options ; }
return the options for a key event
return the options for a key event