debian-mirror-gitlab/spec/frontend/issue_show/helpers.js

10 lines
202 B
JavaScript
Raw Normal View History

2019-12-26 22:10:19 +05:30
export const keyboardDownEvent = (code, metaKey = false, ctrlKey = false) => {
const e = new CustomEvent('keydown');
e.keyCode = code;
e.metaKey = metaKey;
e.ctrlKey = ctrlKey;
return e;
};