mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 04:05:16 +01:00
This commit is contained in:
parent
092c58f629
commit
70e6a3182d
23 changed files with 382 additions and 136 deletions
|
|
@ -1270,15 +1270,20 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {
|
|||
}
|
||||
}
|
||||
|
||||
if (window.siyuan.dialogs.length > 0) {
|
||||
window.siyuan.dialogs[window.siyuan.dialogs.length - 1].destroy();
|
||||
// 需放在 menus 后,否则资源列中添加资源会先关闭菜单
|
||||
// 需放在 dialog 前,否则属性面板中修改日期会先关闭 dialog,只剩修改界面
|
||||
const avElement = document.querySelector(".av__panel");
|
||||
if (avElement) {
|
||||
const selectCellElement = document.querySelector(".av__cell--select")
|
||||
if (selectCellElement) {
|
||||
focusBlock(hasClosestBlock(selectCellElement) as HTMLElement);
|
||||
}
|
||||
avElement.remove();
|
||||
return;
|
||||
}
|
||||
|
||||
// 需放在 menus 后,否则资源列中添加资源会先关闭菜单
|
||||
const avElement = document.querySelector(".av__panel");
|
||||
if (avElement) {
|
||||
avElement.remove();
|
||||
if (window.siyuan.dialogs.length > 0) {
|
||||
window.siyuan.dialogs[window.siyuan.dialogs.length - 1].destroy();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue