mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
📱 编辑器设置界面点击空白或关闭,焦点不知何故会飘移到编辑器上
This commit is contained in:
parent
7698add67e
commit
52960afc5f
1 changed files with 10 additions and 0 deletions
|
|
@ -193,6 +193,16 @@ const renderKeyboardToolbar = () => {
|
|||
hideKeyboardToolbar();
|
||||
return;
|
||||
}
|
||||
// 编辑器设置界面点击空白或关闭,焦点不知何故会飘移到编辑器上
|
||||
if (document.activeElement &&
|
||||
document.activeElement.tagName !== "INPUT" &&
|
||||
document.activeElement.tagName !== "TEXTAREA" && (
|
||||
document.getElementById("menu").style.transform === "translateX(0px)" ||
|
||||
document.getElementById("model").style.transform === "translateY(0px)"
|
||||
)) {
|
||||
hideKeyboardToolbar();
|
||||
return;
|
||||
}
|
||||
if (!showUtil) {
|
||||
hideKeyboardToolbarUtil();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue