mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 02:09:59 +08:00
This commit is contained in:
parent
68fe154203
commit
c3517f48bd
@ -2162,6 +2162,7 @@ export class WYSIWYG {
|
|||||||
if (event.target.tagName === "VIDEO") {
|
if (event.target.tagName === "VIDEO") {
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
activeBlur();
|
activeBlur();
|
||||||
|
hideKeyboardToolbar();
|
||||||
/// #endif
|
/// #endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2257,9 +2258,9 @@ export class WYSIWYG {
|
|||||||
action.push(Constants.CB_GET_HL);
|
action.push(Constants.CB_GET_HL);
|
||||||
}
|
}
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
openMobileFileById(protyle.app, refBlockId, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
|
|
||||||
activeBlur();
|
activeBlur();
|
||||||
hideKeyboardToolbar();
|
hideKeyboardToolbar();
|
||||||
|
openMobileFileById(protyle.app, refBlockId, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
|
||||||
/// #else
|
/// #else
|
||||||
if (event.shiftKey) {
|
if (event.shiftKey) {
|
||||||
openFileById({
|
openFileById({
|
||||||
@ -2324,9 +2325,9 @@ export class WYSIWYG {
|
|||||||
excludeIDs: [blockElement.getAttribute("data-node-id")]
|
excludeIDs: [blockElement.getAttribute("data-node-id")]
|
||||||
}, (response) => {
|
}, (response) => {
|
||||||
checkFold(response.data.refDefs[0].refID, (zoomIn) => {
|
checkFold(response.data.refDefs[0].refID, (zoomIn) => {
|
||||||
openMobileFileById(protyle.app, response.data.refDefs[0].refID, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
|
|
||||||
activeBlur();
|
activeBlur();
|
||||||
hideKeyboardToolbar();
|
hideKeyboardToolbar();
|
||||||
|
openMobileFileById(protyle.app, response.data.refDefs[0].refID, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -2398,9 +2399,9 @@ export class WYSIWYG {
|
|||||||
const embedId = embedItemElement.getAttribute("data-id");
|
const embedId = embedItemElement.getAttribute("data-id");
|
||||||
checkFold(embedId, (zoomIn, action) => {
|
checkFold(embedId, (zoomIn, action) => {
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
openMobileFileById(protyle.app, embedId, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
|
|
||||||
activeBlur();
|
activeBlur();
|
||||||
hideKeyboardToolbar();
|
hideKeyboardToolbar();
|
||||||
|
openMobileFileById(protyle.app, embedId, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);
|
||||||
/// #else
|
/// #else
|
||||||
if (event.shiftKey) {
|
if (event.shiftKey) {
|
||||||
openFileById({
|
openFileById({
|
||||||
|
Loading…
Reference in New Issue
Block a user