diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index e8960476c..c40f2f919 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -209,7 +209,7 @@ const renderPDF = (id: string) => { `; const mainWindow = getCurrentWindow(); diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index 90984c899..525679625 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -3,7 +3,7 @@ import {getIconByType} from "../../editor/getIcon"; import {iframeMenu, setFold, tableMenu, videoMenu, zoomOut} from "../../menus/protyle"; import {MenuItem} from "../../menus/Menu"; import {copySubMenu, openAttr, openWechatNotify} from "../../menus/commonMenuItem"; -import {updateHotkeyTip, writeText} from "../util/compatibility"; +import {isCtrl, updateHotkeyTip, writeText} from "../util/compatibility"; import { transaction, turnsIntoOneTransaction, turnsIntoTransaction, @@ -144,9 +144,9 @@ export class Gutter { window.siyuan.menus.menu.remove(); return; } - if (window.siyuan.ctrlIsPressed) { + if (event.ctrlKey || event.metaKey) { zoomOut(protyle, id); - } else if (window.siyuan.altIsPressed) { + } else if (event.altKey) { let foldElement: Element; Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${id}"]`)).find(item => { if (!hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed") && diff --git a/app/webpack.export.js b/app/webpack.export.js index 00713faae..07bc5ead5 100644 --- a/app/webpack.export.js +++ b/app/webpack.export.js @@ -23,19 +23,19 @@ module.exports = (env, argv) => { entry: { 'protyle-method': './src/protyle/method.ts', }, - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - terserOptions: { - format: { - comments: false, - }, - }, - extractComments: false, - }), - ], - }, + // optimization: { + // minimize: true, + // minimizer: [ + // new TerserPlugin({ + // terserOptions: { + // format: { + // comments: false, + // }, + // }, + // extractComments: false, + // }), + // ], + // }, resolve: { fallback: { 'path': require.resolve('path-browserify'),