mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🚨
This commit is contained in:
parent
cfbe6a401a
commit
137b437027
4 changed files with 6 additions and 6 deletions
|
|
@ -20,7 +20,7 @@ export const lockScreen = () => {
|
||||||
/// #else
|
/// #else
|
||||||
ipcRenderer.send(Constants.SIYUAN_LOCK_SCREEN);
|
ipcRenderer.send(Constants.SIYUAN_LOCK_SCREEN);
|
||||||
/// #endif
|
/// #endif
|
||||||
}
|
};
|
||||||
|
|
||||||
export const lockFile = (id: string) => {
|
export const lockFile = (id: string) => {
|
||||||
const html = `<div class="b3-dialog__scrim"></div>
|
const html = `<div class="b3-dialog__scrim"></div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/// #if !MOBILE
|
/// #if !MOBILE
|
||||||
import {getAllDocks} from "./getAll";
|
import {getAllDocks} from "./getAll";
|
||||||
import {updateHotkeyTip} from "../protyle/util/compatibility";
|
import {updateHotkeyTip} from "../protyle/util/compatibility";
|
||||||
import {exportLayout, getDockByType, resizeTabs} from "./util";
|
import {getDockByType, resizeTabs} from "./util";
|
||||||
import {hasClosestByClassName} from "../protyle/util/hasClosest";
|
import {hasClosestByClassName} from "../protyle/util/hasClosest";
|
||||||
import {fetchPost} from "../util/fetch";
|
import {fetchPost} from "../util/fetch";
|
||||||
import {mountHelp} from "../util/mount";
|
import {mountHelp} from "../util/mount";
|
||||||
|
|
@ -84,7 +84,7 @@ export const initStatus = () => {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
break;
|
break;
|
||||||
} else if (target.id === "barLock") {
|
} else if (target.id === "barLock") {
|
||||||
lockScreen()
|
lockScreen();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
break;
|
break;
|
||||||
} else if (target.id === "barHelp") {
|
} else if (target.id === "barHelp") {
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ export class Title {
|
||||||
click: async () => {
|
click: async () => {
|
||||||
focusByRange(getEditorRange(this.editElement));
|
focusByRange(getEditorRange(this.editElement));
|
||||||
// 不能使用 execCommand https://github.com/siyuan-note/siyuan/issues/7045
|
// 不能使用 execCommand https://github.com/siyuan-note/siyuan/issues/7045
|
||||||
const text = await readText()
|
const text = await readText();
|
||||||
document.execCommand("insertText", false, replaceFileName(text));
|
document.execCommand("insertText", false, replaceFileName(text));
|
||||||
this.rename(protyle);
|
this.rename(protyle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
import {newFile} from "./newFile";
|
import {newFile} from "./newFile";
|
||||||
import {Constants} from "../constants";
|
import {Constants} from "../constants";
|
||||||
import {openSetting} from "../config";
|
import {openSetting} from "../config";
|
||||||
import {exportLayout, getDockByType, getInstanceById} from "../layout/util";
|
import {getDockByType, getInstanceById} from "../layout/util";
|
||||||
import {Tab} from "../layout/Tab";
|
import {Tab} from "../layout/Tab";
|
||||||
import {Editor} from "../editor";
|
import {Editor} from "../editor";
|
||||||
import {setEditMode} from "../protyle/util/setEditMode";
|
import {setEditMode} from "../protyle/util/setEditMode";
|
||||||
|
|
@ -535,7 +535,7 @@ export const globalShortcut = () => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (matchHotKey(window.siyuan.config.keymap.general.lockScreen.custom, event)) {
|
if (matchHotKey(window.siyuan.config.keymap.general.lockScreen.custom, event)) {
|
||||||
lockScreen()
|
lockScreen();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue