|
@@ -85,6 +85,7 @@ export default {
|
|
|
event.preventDefault(); // 取消默认的右击菜单显示行为
|
|
|
that.showCustomMenu(event)
|
|
|
});
|
|
|
+ this.setFocus()
|
|
|
// 当点击任意地方或者按下ESC键时,隐藏菜单
|
|
|
// window.onclick = this.hideCustomMenu
|
|
|
window.addEventListener('click',function(event){
|
|
@@ -196,6 +197,7 @@ export default {
|
|
|
customMenu.style.display = "none";
|
|
|
}
|
|
|
if (e.keyCode === 13) {
|
|
|
+ return
|
|
|
e.preventDefault(); // 阻止默认操作
|
|
|
document.execCommand("insertHTML", false, "<br><br>"); // 插入换行
|
|
|
}
|