mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 17:58:50 +01:00
This commit is contained in:
parent
3685753c75
commit
cab1545fed
2 changed files with 17 additions and 9 deletions
|
|
@ -2670,7 +2670,7 @@ export class WYSIWYG {
|
|||
/// #if MOBILE
|
||||
mobileBlur = true;
|
||||
activeBlur();
|
||||
openMobileFileById(protyle.app, refBlockId, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
|
||||
openMobileFileById(protyle.app, refBlockId, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL], "start");
|
||||
/// #else
|
||||
if (event.shiftKey) {
|
||||
openFileById({
|
||||
|
|
@ -2678,7 +2678,8 @@ export class WYSIWYG {
|
|||
id: refBlockId,
|
||||
position: "bottom",
|
||||
action,
|
||||
zoomIn
|
||||
zoomIn,
|
||||
scrollPosition: "start"
|
||||
});
|
||||
window.dispatchEvent(new KeyboardEvent("keydown", {key: "Escape"}));
|
||||
} else if (event.altKey) {
|
||||
|
|
@ -2687,7 +2688,8 @@ export class WYSIWYG {
|
|||
id: refBlockId,
|
||||
position: "right",
|
||||
action,
|
||||
zoomIn
|
||||
zoomIn,
|
||||
scrollPosition: "start"
|
||||
});
|
||||
} else if (ctrlIsPressed) {
|
||||
openFileById({
|
||||
|
|
@ -2695,14 +2697,16 @@ export class WYSIWYG {
|
|||
id: refBlockId,
|
||||
keepCursor: true,
|
||||
action: zoomIn ? [Constants.CB_GET_HL, Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL],
|
||||
zoomIn
|
||||
zoomIn,
|
||||
scrollPosition: "start"
|
||||
});
|
||||
} else {
|
||||
openFileById({
|
||||
app: protyle.app,
|
||||
id: refBlockId,
|
||||
action,
|
||||
zoomIn
|
||||
zoomIn,
|
||||
scrollPosition: "start"
|
||||
});
|
||||
}
|
||||
/// #endif
|
||||
|
|
|
|||
|
|
@ -1960,7 +1960,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
app: protyle.app,
|
||||
id,
|
||||
action,
|
||||
zoomIn
|
||||
zoomIn,
|
||||
scrollPosition: "start"
|
||||
});
|
||||
});
|
||||
event.preventDefault();
|
||||
|
|
@ -1974,7 +1975,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
id,
|
||||
action: zoomIn ? [Constants.CB_GET_HL, Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL],
|
||||
keepCursor: true,
|
||||
zoomIn
|
||||
zoomIn,
|
||||
scrollPosition: "start"
|
||||
});
|
||||
});
|
||||
event.preventDefault();
|
||||
|
|
@ -1990,7 +1992,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
id,
|
||||
position: "right",
|
||||
action,
|
||||
zoomIn
|
||||
zoomIn,
|
||||
scrollPosition: "start"
|
||||
});
|
||||
});
|
||||
event.preventDefault();
|
||||
|
|
@ -2006,7 +2009,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
id,
|
||||
position: "bottom",
|
||||
action,
|
||||
zoomIn
|
||||
zoomIn,
|
||||
scrollPosition: "start"
|
||||
});
|
||||
});
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue