Vanessa 2025-10-24 11:34:06 +08:00
parent d9e0c56a47
commit ec6e7a019e
9 changed files with 63 additions and 58 deletions

View file

@ -1000,29 +1000,35 @@ declare namespace Config {
* SiYuan general shortcut keys
*/
export interface IKeymapGeneral extends IKeys {
addToDatabase: IKey;
backlinks: IKey;
bookmark: IKey;
closeAll: IKey;
closeLeft: IKey;
closeOthers: IKey;
closeRight: IKey;
closeTab: IKey;
closeUnmodified: IKey;
mainMenu: IKey;
commandPanel: IKey;
config: IKey;
dailyNote: IKey;
dataHistory: IKey;
editReadonly: IKey;
enter: IKey;
syncNow: IKey;
enterBack: IKey;
fileTree: IKey;
globalGraph: IKey;
globalSearch: IKey;
goBack: IKey;
enter: IKey;
goForward: IKey;
goToEditTabNext: IKey;
goToEditTabPrev: IKey;
goBack: IKey;
newFile: IKey;
search: IKey;
globalSearch: IKey;
stickSearch: IKey;
replace: IKey;
closeTab: IKey;
fileTree: IKey;
outline: IKey;
bookmark: IKey;
tag: IKey;
dailyNote: IKey;
inbox: IKey;
backlinks: IKey;
graphView: IKey;
globalGraph: IKey;
riffCard: IKey;
config: IKey;
dataHistory: IKey;
toggleWin: IKey;
lockScreen: IKey;
recentDocs: IKey;
goToTab1: IKey;
goToTab2: IKey;
goToTab3: IKey;
@ -1034,28 +1040,25 @@ declare namespace Config {
goToTab9: IKey;
goToTabNext: IKey;
goToTabPrev: IKey;
graphView: IKey;
inbox: IKey;
lockScreen: IKey;
mainMenu: IKey;
goToEditTabNext: IKey;
goToEditTabPrev: IKey;
recentClosed: IKey;
move: IKey;
newFile: IKey;
outline: IKey;
recentDocs: IKey;
replace: IKey;
riffCard: IKey;
search: IKey;
selectOpen1: IKey;
toggleDock: IKey;
splitLR: IKey;
splitMoveB: IKey;
splitMoveR: IKey;
splitTB: IKey;
stickSearch: IKey;
syncNow: IKey;
splitMoveB: IKey;
closeOthers: IKey;
closeAll: IKey;
closeUnmodified: IKey;
closeLeft: IKey;
closeRight: IKey;
tabToWindow: IKey;
tag: IKey;
toggleDock: IKey;
toggleWin: IKey;
addToDatabase: IKey;
unsplit: IKey;
unsplitAll: IKey;
}
/**

View file

@ -216,10 +216,6 @@ interface Window {
encode(options: string): string,
};
pdfjsLib: any;
dataLayer: any[];
siyuan: ISiyuan;
webkit: {
messageHandlers: {
openLink: { postMessage: (url: string) => void }
@ -233,6 +229,8 @@ interface Window {
toCanvas: (element: Element) => Promise<HTMLCanvasElement>
toBlob: (element: Element) => Promise<Blob>
};
siyuan: ISiyuan;
JSAndroid: {
returnDesktop(): void
openExternal(url: string): void
@ -462,6 +460,7 @@ interface ISiyuan {
storage?: {
[key: string]: any
},
closedTabs: string[]
transactions?: {
protyle: IProtyle,
doOperations: IOperation[],