mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
This commit is contained in:
parent
1cca66f9bb
commit
9d89e28e4e
4 changed files with 12 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ import {getOpenNotebookCount} from "./pathName";
|
|||
import {openFileById} from "../editor/util";
|
||||
import {focusByRange} from "../protyle/util/selection";
|
||||
import {exitSiYuan} from "../dialog/processSystem";
|
||||
import {openSetting} from "../config";
|
||||
|
||||
const matchKeymap = (keymap: Record<string, IKeymapItem>, key1: "general" | "editor", key2?: "general" | "insert" | "heading" | "list" | "table") => {
|
||||
if (key1 === "general") {
|
||||
|
|
@ -270,6 +271,10 @@ const initBar = () => {
|
|||
});
|
||||
resizeTabs();
|
||||
});
|
||||
document.getElementById("toolbarVIP").addEventListener("click", (event) => {
|
||||
const dialogSetting = openSetting();
|
||||
dialogSetting.element.querySelector('.b3-tab-bar [data-name="account"]').dispatchEvent(new CustomEvent("click"));
|
||||
});
|
||||
document.getElementById("barDailyNote").addEventListener("click", (event) => {
|
||||
if (getOpenNotebookCount() < 2) {
|
||||
newDailyNote();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue