mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
This commit is contained in:
parent
badaf6ffb8
commit
33b9a6d331
18 changed files with 78 additions and 41 deletions
|
|
@ -23,6 +23,7 @@ import {openRecentDocs} from "../business/openRecentDocs";
|
|||
import {openHistory} from "../history/history";
|
||||
import {newFile} from "../util/newFile";
|
||||
import {mountHelp, newNotebook} from "../util/mount";
|
||||
import {Constants} from "../constants";
|
||||
|
||||
export const getActiveTab = (wndActive = true) => {
|
||||
const activeTabElement = document.querySelector(".layout__wnd--active .item--focus");
|
||||
|
|
@ -185,7 +186,7 @@ export const newCenterEmptyTab = (app: App) => {
|
|||
if (target.id === "editorEmptySearch") {
|
||||
openSearch({
|
||||
app,
|
||||
hotkey: window.siyuan.config.keymap.general.globalSearch.custom,
|
||||
hotkey: Constants.DIALOG_GLOBALSEARCH,
|
||||
});
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue