From 4172c7eb553b1409c2ecebe83e9646ef531bf750 Mon Sep 17 00:00:00 2001 From: nogino Date: Thu, 11 Nov 2021 20:25:11 +0900 Subject: [PATCH 01/13] =?UTF-8?q?UI=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index 0599ad6804..e78720ece9 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -85,6 +85,18 @@ " @click="openHotkeyDialog(props.row.action)" /> + + デフォルトに戻す + @@ -304,6 +316,10 @@ export default defineComponent({ ); }); + const resetHotkey = (action: string) => { + console.log(action); + }; + return { hotkeySettingDialogOpenComputed, isHotkeyDialogOpened, @@ -322,6 +338,7 @@ export default defineComponent({ changeHotkeySettings, confirmBtnEnabled, checkHotkeyReadonly, + resetHotkey, }; }, }); @@ -347,6 +364,16 @@ export default defineComponent({ overflow-x: hidden; } + tbody tr { + td button:last-child { + float: right; + display: none; + } + &:hover td button:last-child { + display: inline-flex; + } + } + thead tr th { position: sticky; top: 0; From f04b8bada820b5e09966aa8ac2c1cc9b1fb614d0 Mon Sep 17 00:00:00 2001 From: nogino Date: Fri, 12 Nov 2021 23:25:27 +0900 Subject: [PATCH 02/13] =?UTF-8?q?=E3=83=87=E3=83=95=E3=82=A9=E3=83=AB?= =?UTF-8?q?=E3=83=88=E3=81=AB=E6=88=BB=E3=81=99=E6=A9=9F=E8=83=BD=E3=81=AE?= =?UTF-8?q?=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background.ts | 146 +++++++++++++------------ src/components/HotkeySettingDialog.vue | 15 ++- src/electron/preload.ts | 4 + src/type/ipc.d.ts | 5 + src/type/preload.d.ts | 1 + 5 files changed, 98 insertions(+), 73 deletions(-) diff --git a/src/background.ts b/src/background.ts index 7acc4492d0..afdf803839 100644 --- a/src/background.ts +++ b/src/background.ts @@ -59,6 +59,77 @@ protocol.registerSchemesAsPrivileged([ { scheme: "app", privileges: { secure: true, standard: true, stream: true } }, ]); +const defaultHotkeySetting: HotkeySetting[] = [ + { + action: "音声書き出し", + combination: "Ctrl E", + }, + { + action: "一つだけ書き出し", + combination: "", + }, + { + action: "再生/停止", + combination: "Space", + }, + { + action: "連続再生/停止", + combination: "", + }, + { + action: "アクセント欄を表示", + combination: "1", + }, + { + action: "イントネーション欄を表示", + combination: "2", + }, + { + action: "テキスト欄を追加", + combination: "Shift Enter", + }, + { + action: "テキスト欄を削除", + combination: "Shift Delete", + }, + { + action: "テキスト欄からフォーカスを外す", + combination: "Escape", + }, + { + action: "テキスト欄にフォーカスを戻す", + combination: "Enter", + }, + { + action: "元に戻す", + combination: "Ctrl Z", + }, + { + action: "やり直す", + combination: "Ctrl Y", + }, + { + action: "新規プロジェクト", + combination: "Ctrl N", + }, + { + action: "プロジェクトを名前を付けて保存", + combination: "Ctrl Shift S", + }, + { + action: "プロジェクトを上書き保存", + combination: "Ctrl S", + }, + { + action: "プロジェクト読み込み", + combination: "Ctrl O", + }, + { + action: "テキスト読み込む", + combination: "", + }, +]; + // 設定ファイル const store = new Store<{ useGpu: boolean; @@ -116,76 +187,7 @@ const store = new Store<{ combination: { type: "string" }, }, }, - default: [ - { - action: "音声書き出し", - combination: "Ctrl E", - }, - { - action: "一つだけ書き出し", - combination: "", - }, - { - action: "再生/停止", - combination: "Space", - }, - { - action: "連続再生/停止", - combination: "", - }, - { - action: "アクセント欄を表示", - combination: "1", - }, - { - action: "イントネーション欄を表示", - combination: "2", - }, - { - action: "テキスト欄を追加", - combination: "Shift Enter", - }, - { - action: "テキスト欄を削除", - combination: "Shift Delete", - }, - { - action: "テキスト欄からフォーカスを外す", - combination: "Escape", - }, - { - action: "テキスト欄にフォーカスを戻す", - combination: "Enter", - }, - { - action: "元に戻す", - combination: "Ctrl Z", - }, - { - action: "やり直す", - combination: "Ctrl Y", - }, - { - action: "新規プロジェクト", - combination: "Ctrl N", - }, - { - action: "プロジェクトを名前を付けて保存", - combination: "Ctrl Shift S", - }, - { - action: "プロジェクトを上書き保存", - combination: "Ctrl S", - }, - { - action: "プロジェクト読み込み", - combination: "Ctrl O", - }, - { - action: "テキスト読み込む", - combination: "", - }, - ], + default: defaultHotkeySetting, }, defaultStyleIds: { type: "array", @@ -671,6 +673,10 @@ ipcMainHandle("SET_DEFAULT_STYLE_IDS", (_, defaultStyleIds) => { store.set("defaultStyleIds", defaultStyleIds); }); +ipcMainHandle("GET_DEFAULT_HOTKEY_SETTINGS", () => { + return defaultHotkeySetting; +}); + // app callback app.on("web-contents-created", (e, contents) => { // リンククリック時はブラウザを開く diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index e78720ece9..5fd7d1154c 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -95,7 +95,7 @@ :disable="checkHotkeyReadonly(props.row.action)" @click="resetHotkey(props.row.action)" > - デフォルトに戻す + デフォルトに戻す @@ -190,7 +190,7 @@ import { defineComponent, computed, ref } from "vue"; import { useStore } from "@/store"; import { parseCombo } from "@/store/setting"; -import { HotkeyAction } from "@/type/preload"; +import { HotkeyAction, HotkeySetting } from "@/type/preload"; export default defineComponent({ name: "HotkeySettingDialog", @@ -317,7 +317,16 @@ export default defineComponent({ }); const resetHotkey = (action: string) => { - console.log(action); + window.electron + .getDefaultHotkeySettings() + .then((defaultSettings: HotkeySetting[]) => { + const setting = defaultSettings.find( + (value) => value.action == action + ); + if (setting) { + changeHotkeySettings(action, setting.combination); + } + }); }; return { diff --git a/src/electron/preload.ts b/src/electron/preload.ts index f64775c4e8..afeb22872e 100644 --- a/src/electron/preload.ts +++ b/src/electron/preload.ts @@ -195,6 +195,10 @@ const api: Sandbox = { setDefaultStyleIds: async (defaultStyleIds) => { await ipcRendererInvoke("SET_DEFAULT_STYLE_IDS", defaultStyleIds); }, + + getDefaultHotkeySettings: async () => { + return await ipcRendererInvoke("GET_DEFAULT_HOTKEY_SETTINGS"); + }, }; contextBridge.exposeInMainWorld("electron", api); diff --git a/src/type/ipc.d.ts b/src/type/ipc.d.ts index 99c0c6358f..6f3a006d4f 100644 --- a/src/type/ipc.d.ts +++ b/src/type/ipc.d.ts @@ -167,6 +167,11 @@ type IpcIHData = { return: void; }; + GET_DEFAULT_HOTKEY_SETTINGS: { + args: []; + return: import("@/type/preload").HotkeySetting[]; + }; + USE_VOICING: { args: [obj: { newData?: boolean }]; return: boolean; diff --git a/src/type/preload.d.ts b/src/type/preload.d.ts index 43050fcefb..2b45c4ed99 100644 --- a/src/type/preload.d.ts +++ b/src/type/preload.d.ts @@ -53,6 +53,7 @@ export interface Sandbox { setDefaultStyleIds( defaultStyleIds: { speakerUuid: string; defaultStyleId: number }[] ): Promise; + getDefaultHotkeySettings(): Promise; } export type AppInfos = { From 31ab9c2d82c346cf3b757cb8a056101345d55da5 Mon Sep 17 00:00:00 2001 From: nogino Date: Fri, 12 Nov 2021 23:52:48 +0900 Subject: [PATCH 03/13] =?UTF-8?q?=E8=AA=A4=E5=AD=97=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/background.ts b/src/background.ts index afdf803839..a346b6a056 100644 --- a/src/background.ts +++ b/src/background.ts @@ -59,14 +59,14 @@ protocol.registerSchemesAsPrivileged([ { scheme: "app", privileges: { secure: true, standard: true, stream: true } }, ]); -const defaultHotkeySetting: HotkeySetting[] = [ +const defaultHotkeySettings: HotkeySetting[] = [ { action: "音声書き出し", combination: "Ctrl E", }, { action: "一つだけ書き出し", - combination: "", + combination: "E", }, { action: "再生/停止", @@ -74,7 +74,7 @@ const defaultHotkeySetting: HotkeySetting[] = [ }, { action: "連続再生/停止", - combination: "", + combination: "Shift Space", }, { action: "アクセント欄を表示", @@ -187,7 +187,7 @@ const store = new Store<{ combination: { type: "string" }, }, }, - default: defaultHotkeySetting, + default: defaultHotkeySettings, }, defaultStyleIds: { type: "array", @@ -674,7 +674,7 @@ ipcMainHandle("SET_DEFAULT_STYLE_IDS", (_, defaultStyleIds) => { }); ipcMainHandle("GET_DEFAULT_HOTKEY_SETTINGS", () => { - return defaultHotkeySetting; + return defaultHotkeySettings; }); // app callback From 93267f0db146b57dd565eb55c4278a553bb89072 Mon Sep 17 00:00:00 2001 From: nogino Date: Sat, 13 Nov 2021 10:51:09 +0900 Subject: [PATCH 04/13] =?UTF-8?q?=E7=A2=BA=E8=AA=8D=E3=83=80=E3=82=A4?= =?UTF-8?q?=E3=82=A2=E3=83=AD=E3=82=B0=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 39 +++++++++++++++++++------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index 5fd7d1154c..c57f56e39b 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -191,6 +191,7 @@ import { defineComponent, computed, ref } from "vue"; import { useStore } from "@/store"; import { parseCombo } from "@/store/setting"; import { HotkeyAction, HotkeySetting } from "@/type/preload"; +import { useQuasar } from "quasar"; export default defineComponent({ name: "HotkeySettingDialog", @@ -204,6 +205,7 @@ export default defineComponent({ setup(props, { emit }) { const store = useStore(); + const $q = useQuasar(); const hotkeySettingDialogOpenComputed = computed({ get: () => props.modelValue, @@ -317,16 +319,33 @@ export default defineComponent({ }); const resetHotkey = (action: string) => { - window.electron - .getDefaultHotkeySettings() - .then((defaultSettings: HotkeySetting[]) => { - const setting = defaultSettings.find( - (value) => value.action == action - ); - if (setting) { - changeHotkeySettings(action, setting.combination); - } - }); + $q.dialog({ + title: "ショートカットキーを初期値に戻します", + message: + "ショートカットキーの設定を初期値に戻します。
本当に戻しますか?", + html: true, + ok: { + label: "初期値に戻す", + flat: true, + textColor: "secondary", + }, + cancel: { + label: "初期値に戻さない", + flat: true, + textColor: "secondary", + }, + }).onOk(() => { + window.electron + .getDefaultHotkeySettings() + .then((defaultSettings: HotkeySetting[]) => { + const setting = defaultSettings.find( + (value) => value.action == action + ); + if (setting) { + changeHotkeySettings(action, setting.combination); + } + }); + }); }; return { From 0844d52d80e17357eb5579e2a5ddbe295e9a9495 Mon Sep 17 00:00:00 2001 From: nogino Date: Sat, 13 Nov 2021 11:09:52 +0900 Subject: [PATCH 05/13] =?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E8=89=B2?= =?UTF-8?q?=E3=80=81=E3=83=84=E3=83=BC=E3=83=AB=E3=83=81=E3=83=83=E3=83=97?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E6=99=82=E9=96=93=E3=81=AE=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index c57f56e39b..eafd28422f 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -90,12 +90,12 @@ flat icon="settings_backup_restore" padding="none sm" - color="secondary" + color="grey-5" size="1em" :disable="checkHotkeyReadonly(props.row.action)" @click="resetHotkey(props.row.action)" > - デフォルトに戻す + デフォルトに戻す From ae024ce9d177491e3e92d35e370ce90eb00fb631 Mon Sep 17 00:00:00 2001 From: nogino Date: Sat, 13 Nov 2021 11:14:28 +0900 Subject: [PATCH 06/13] =?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E8=89=B2?= =?UTF-8?q?=E5=86=8D=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index eafd28422f..d5333213b1 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -90,7 +90,7 @@ flat icon="settings_backup_restore" padding="none sm" - color="grey-5" + color="grey-6" size="1em" :disable="checkHotkeyReadonly(props.row.action)" @click="resetHotkey(props.row.action)" From b4f5b4e2ff48dbb9684e446a0c204bf3417a6d0a Mon Sep 17 00:00:00 2001 From: nogino Date: Sat, 13 Nov 2021 22:46:17 +0900 Subject: [PATCH 07/13] =?UTF-8?q?=E3=83=9E=E3=82=A6=E3=82=B9=E3=83=9B?= =?UTF-8?q?=E3=83=90=E3=83=BC=E3=81=A7=E8=89=B2=E3=81=8C=E5=A4=89=E3=82=8F?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index d5333213b1..3e8fe5cf27 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -90,7 +90,6 @@ flat icon="settings_backup_restore" padding="none sm" - color="grey-6" size="1em" :disable="checkHotkeyReadonly(props.row.action)" @click="resetHotkey(props.row.action)" @@ -399,6 +398,10 @@ export default defineComponent({ } &:hover td button:last-child { display: inline-flex; + color: $grey-6; + &:hover { + color: global.$secondary; + } } } From 576a177ad830063fcb5e7a72b89768546895f1a7 Mon Sep 17 00:00:00 2001 From: nogino Date: Sat, 13 Nov 2021 22:55:19 +0900 Subject: [PATCH 08/13] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index d95568ee00..4d6b974e59 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -404,7 +404,7 @@ export default defineComponent({ display: inline-flex; color: $grey-6; &:hover { - color: global.$secondary; + color: $grey-10; } } } From e65af2a5b4fb2b6ce349b90a00db94728c0bd3f3 Mon Sep 17 00:00:00 2001 From: nogino Date: Sat, 13 Nov 2021 23:36:45 +0900 Subject: [PATCH 09/13] =?UTF-8?q?=E3=83=86=E3=83=BC=E3=83=9E=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index 4d6b974e59..71caa65fb7 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -402,9 +402,9 @@ export default defineComponent({ } &:hover td button:last-child { display: inline-flex; - color: $grey-6; + color: rgba(var(--color-display-rgb), 0.5); &:hover { - color: $grey-10; + color: var(--color-display); } } } From fa06caa68e7f94bc44bf25509932dc3df32ed6ef Mon Sep 17 00:00:00 2001 From: nogino Date: Sat, 13 Nov 2021 23:40:36 +0900 Subject: [PATCH 10/13] =?UTF-8?q?opacity=E3=82=92=E4=BD=BF=E3=81=86?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index 71caa65fb7..417bc27248 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -402,9 +402,10 @@ export default defineComponent({ } &:hover td button:last-child { display: inline-flex; - color: rgba(var(--color-display-rgb), 0.5); + color: var(--color-display); + opacity: 0.5; &:hover { - color: var(--color-display); + opacity: 1; } } } From 83255f4d6f5b189b69e14830c54b4440d46e79c5 Mon Sep 17 00:00:00 2001 From: nogino Date: Sun, 14 Nov 2021 08:48:25 +0900 Subject: [PATCH 11/13] =?UTF-8?q?fmt=E3=81=AE=E5=AE=9F=E8=A1=8C=E3=80=81:d?= =?UTF-8?q?elay=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 2 +- src/electron/preload.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index 417bc27248..65b1718a12 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -96,7 +96,7 @@ :disable="checkHotkeyReadonly(props.row.action)" @click="resetHotkey(props.row.action)" > - デフォルトに戻す + デフォルトに戻す diff --git a/src/electron/preload.ts b/src/electron/preload.ts index 85a11e6ffa..9f1b99b26d 100644 --- a/src/electron/preload.ts +++ b/src/electron/preload.ts @@ -195,15 +195,15 @@ const api: Sandbox = { setDefaultStyleIds: async (defaultStyleIds) => { await ipcRendererInvoke("SET_DEFAULT_STYLE_IDS", defaultStyleIds); }, - + getDefaultHotkeySettings: async () => { return await ipcRendererInvoke("GET_DEFAULT_HOTKEY_SETTINGS"); }, - + theme: (newData) => { return ipcRenderer.invoke("THEME", { newData }); }, - + vuexReady: () => { ipcRenderer.invoke("ON_VUEX_READY"); }, From d5573b61ebbc0803dfb0706839e5738e9ac3214e Mon Sep 17 00:00:00 2001 From: nogino Date: Sun, 14 Nov 2021 09:28:34 +0900 Subject: [PATCH 12/13] =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=82=AF=E3=83=AA?= =?UTF-8?q?=E3=83=95=E3=83=88=E3=82=92=E7=9B=B4=E3=81=97=E3=81=9F=E9=9A=9B?= =?UTF-8?q?=E3=81=AE=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/type/ipc.d.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/type/ipc.d.ts b/src/type/ipc.d.ts index cb23eaeeae..0777220c6e 100644 --- a/src/type/ipc.d.ts +++ b/src/type/ipc.d.ts @@ -172,9 +172,6 @@ type IpcIHData = { return: import("@/type/preload").HotkeySetting[]; }; - USE_VOICING: { - args: [obj: { newData?: boolean }]; - return: boolean; THEME: { args: [obj: { newData?: string }]; return: import("@/type/preload").ThemeSetting | void; From e9f9fe90649d26dc5e3aa7f244d71c1c27f919bd Mon Sep 17 00:00:00 2001 From: nogino Date: Sun, 14 Nov 2021 20:08:53 +0900 Subject: [PATCH 13/13] =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=83=A1=E3=83=83?= =?UTF-8?q?=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HotkeySettingDialog.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/HotkeySettingDialog.vue b/src/components/HotkeySettingDialog.vue index 65b1718a12..0bac4695fc 100644 --- a/src/components/HotkeySettingDialog.vue +++ b/src/components/HotkeySettingDialog.vue @@ -324,8 +324,7 @@ export default defineComponent({ const resetHotkey = (action: string) => { $q.dialog({ title: "ショートカットキーを初期値に戻します", - message: - "ショートカットキーの設定を初期値に戻します。
本当に戻しますか?", + message: `${action}のショートカットキーを初期値に戻します。
本当に戻しますか?`, html: true, ok: { label: "初期値に戻す",