outlineEditingAlias
code:script.js
var onKeyDown = function(e){
var name = e.code;
if (e.metaKey && e.ctrlKey) {
if (name == "KeyH" ) {
let KEvent = new KeyboardEvent( "keydown", { keyCode: 37});
document.dispatchEvent(KEvent);
}
if (name == "KeyJ" ) {
let KEvent = new KeyboardEvent( "keydown", { keyCode: 40, ctrlKey: true});
document.dispatchEvent(KEvent);
}
if (name == "KeyK" ) {
let KEvent = new KeyboardEvent( "keydown", { keyCode: 38, ctrlKey: true});
document.dispatchEvent( KEvent);
}
if (name == "KeyL" ) {
let KEvent = new KeyboardEvent( "keydown", { keyCode: 39, ctrlKey: true});
document.dispatchEvent( KEvent);
}
}
}
document.addEventListener('keydown', onKeyDown);