Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13828

Daniel6ad2ad362c76
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss
index 3ce33271c7..98bc03fe9d 100644
--- a/app/src/assets/scss/protyle/_protyle.scss
+++ b/app/src/assets/scss/protyle/_protyle.scss
@@ -445,7 +445,7 @@ table[contenteditable="false"] + .protyle-action__table > .table__resize {
}
// 按下 Shift 时隐藏表格列宽调整手柄,以便 Shift+滚轮可以横向滚动表格 https://github.com/siyuan-note/siyuan/issues/13828
-body.shift--pressed .table__resize {
+body.body--shift-pressed .table__resize {
display: none !important;
}
diff --git a/app/src/boot/globalEvent/commonHotkey.ts b/app/src/boot/globalEvent/commonHotkey.ts
index 59369b41ca..40fdb3be25 100644
--- a/app/src/boot/globalEvent/commonHotkey.ts
+++ b/app/src/boot/globalEvent/commonHotkey.ts
@@ -188,13 +188,13 @@ export const filterHotkey = (event: KeyboardEvent, app: App) => {
if (event.key === "Shift") {
window.siyuan.shiftIsPressed = true;
// 按下 Shift 时隐藏表格列宽调整手柄,以便 Shift+滚轮可以横向滚动表格 https://github.com/siyuan-note/siyuan/issues/13828
- document.body.classList.add("shift--pressed");
+ document.body.classList.add("body--shift-pressed");
if (!event.repeat) {
showPopover(app, true);
}
} else {
window.siyuan.shiftIsPressed = false;
- document.body.classList.remove("shift--pressed");
+ document.body.classList.remove("body--shift-pressed");
}
}
diff --git a/app/src/boot/globalEvent/event.ts b/app/src/boot/globalEvent/event.ts
index 16f1fe000d..a69820233f 100644
--- a/app/src/boot/globalEvent/event.ts
+++ b/app/src/boot/globalEvent/event.ts
@@ -136,7 +136,7 @@ export const initWindowEvent = (app: App) => {
window.siyuan.ctrlIsPressed = false;
window.siyuan.shiftIsPressed = false;
window.siyuan.altIsPressed = false;
- document.body.classList.remove("shift--pressed");
+ document.body.classList.remove("body--shift-pressed");
/// #if BROWSER
setWebViewFocusable();
/// #endif
diff --git a/app/src/boot/globalEvent/keyup.ts b/app/src/boot/globalEvent/keyup.ts
index b1106fc1ee..9c5991dc76 100644
--- a/app/src/boot/globalEvent/keyup.ts
+++ b/app/src/boot/globalEvent/keyup.ts
@@ -12,7 +12,7 @@ export const windowKeyUp = (app: App, event: KeyboardEvent) => {
window.siyuan.ctrlIsPressed = false;
window.siyuan.shiftIsPressed = false;
window.siyuan.altIsPressed = false;
- document.body.classList.remove("shift--pressed");
+ document.body.classList.remove("body--shift-pressed");
const switchDialog = window.siyuan.dialogs.find(item => {
if (item.element.getAttribute("data-key") === Constants.DIALOG_SWITCHTAB) {
return true;