'use strict'; function createKeyEvent(element, code, ctrlKey) { var e = document.createEvent('Events') || new document.defaultView.CustomEvent('keyEvent'); e.keyCode = code; e.which = code; e.ctrlKey = ctrlKey; return e; } module.exports.createKeyEvent = createKeyEvent;