mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-13 10:34:55 +00:00
92aac008b8
This ensures we run against npm v5: * bump wiredeps dependency version * rebuild .wiredeps * internalize test helpers from diagram-js
14 lines
285 B
JavaScript
14 lines
285 B
JavaScript
'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;
|