mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
028e3118c4
commit
c0b68b1e5e
5 changed files with 121 additions and 96 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/// #if !MOBILE
|
||||
import {getInstanceById} from "../layout/util";
|
||||
import {getInstanceById, setPanelFocus} from "../layout/util";
|
||||
import {Tab} from "../layout/Tab";
|
||||
import {initSearchMenu} from "./search";
|
||||
import {initDockMenu} from "./dock";
|
||||
|
|
@ -68,6 +68,7 @@ export class Menus {
|
|||
this.unselect();
|
||||
// navigation 根上:新建文档/文件夹/取消挂在/打开文件位置
|
||||
initNavigationMenu(app, target).popup({x: event.clientX, y: event.clientY});
|
||||
setPanelFocus(hasClosestByClassName(target, "sy__file") as HTMLElement);
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (dataType === "navigation-file") {
|
||||
|
|
@ -77,6 +78,7 @@ export class Menus {
|
|||
x: event.clientX,
|
||||
y: event.clientY
|
||||
});
|
||||
setPanelFocus(hasClosestByClassName(target, "sy__file") as HTMLElement);
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (dataType === "search-item") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue