From 50af2f5b93ab641903290c81db2b05af3d8aa0f7 Mon Sep 17 00:00:00 2001 From: baiqi Date: Tue, 13 Aug 2024 18:04:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(ctrl):=20ctrl=E7=BB=84=E4=BB=B6=E5=8C=BA?= =?UTF-8?q?=E5=88=86=20mac=20=E5=92=8C=20windows=20=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/pure/ms-ctrl-or-command/index.tsx | 7 +++++++ .../components/pure/ms-minder-editor/main/navigator.vue | 9 +++++---- .../components/pure/ms-minder-editor/menu/batchMenu.vue | 5 +++-- .../pure/ms-minder-editor/menu/nodeFloatMenu.vue | 9 +++++---- frontend/src/utils/index.ts | 8 ++++++++ 5 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 frontend/src/components/pure/ms-ctrl-or-command/index.tsx diff --git a/frontend/src/components/pure/ms-ctrl-or-command/index.tsx b/frontend/src/components/pure/ms-ctrl-or-command/index.tsx new file mode 100644 index 0000000000..e6daf336b9 --- /dev/null +++ b/frontend/src/components/pure/ms-ctrl-or-command/index.tsx @@ -0,0 +1,7 @@ +import { isMacOs } from '@/utils'; + +export default defineComponent(() => { + const isMac = isMacOs(); + + return () => (isMac ? : 'Ctrl'); +}); diff --git a/frontend/src/components/pure/ms-minder-editor/main/navigator.vue b/frontend/src/components/pure/ms-minder-editor/main/navigator.vue index 066e699cd8..49e1b08101 100644 --- a/frontend/src/components/pure/ms-minder-editor/main/navigator.vue +++ b/frontend/src/components/pure/ms-minder-editor/main/navigator.vue @@ -64,7 +64,7 @@
{{ t('common.copy') }}
- +
C
@@ -79,7 +79,7 @@
{{ t('minder.hotboxMenu.paste') }}
- +
V
@@ -94,7 +94,7 @@
{{ t('minder.hotboxMenu.cut') }}
- +
X
@@ -103,7 +103,7 @@
{{ t('minder.hotboxMenu.enterNode') }}
- +
@@ -144,6 +144,7 @@