Textboxの編集領域で隣の領域にジャンプするショートカットキー
code:script.js
//編集領域でのcommand+左右の処理(項目の移動)
function commandLeftRigth(e,obj){
if(!( e.key === "ArrowRight") && e.metaKey){ return; }
//移動先のドキュメントを確保する
e.preventDefault();
e.stopPropagation();
targetDiv = document.querySelector("#thinkbox ul")
selection= window.getSelection()
parent = selection.focusNode.parentNode
if (!(parent.nodeName == "LI")){return;}
if (parent.parentNode.children.length == 1){//ULの中身が空にならないようにする
blankLi = document.createElement("li")
blankLi.innerHTML = "<br>"
parent.parentNode.append(blankLi)
}
targetDiv.prepend(parent)
}
https://gyazo.com/884a8fe7b9dab3c061da6584c0b3a78a
https://gyazo.com/dcc7104744fb913136cfb8b92e9f0a63