From 9ba0ec5de41b3367adea134a0ce69766137b80aa Mon Sep 17 00:00:00 2001 From: tsym <67378554+tsym77yoshi@users.noreply.github.com> Date: Sun, 12 May 2024 12:27:40 +0900 Subject: [PATCH] Update src/plugins/hotkeyPlugin.ts Co-authored-by: Hiroshiba --- src/plugins/hotkeyPlugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/hotkeyPlugin.ts b/src/plugins/hotkeyPlugin.ts index 8762fc7394..5690be53ab 100644 --- a/src/plugins/hotkeyPlugin.ts +++ b/src/plugins/hotkeyPlugin.ts @@ -313,8 +313,8 @@ export const eventToCombination = (event: KeyboardEvent): HotkeyCombination => { if (event.metaKey) { recordedCombination += "Meta "; } - // event.codeから以前のevent.key形式へと変換 - // 列挙するのは将来的に変更する + // event.codeからevent.key形式へと変換 + // TODO: 主要なキーも使えるようにする const eventKey = event.code .replace(/Key|Digit|Numpad/, "") .replace("Minus", "-")