From a4e74a9c5d2a4c9bca68b07574858a0a142751eb Mon Sep 17 00:00:00 2001 From: ducdat0507 <62660527+ducdat0507@users.noreply.github.com> Date: Mon, 19 Dec 2022 19:31:05 +0700 Subject: [PATCH] Hotkey display --- src/components/Hotkey.vue | 58 +++++++++++++++++++++++++++++++++++++++ src/features/hotkey.tsx | 5 ++-- 2 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 src/components/Hotkey.vue diff --git a/src/components/Hotkey.vue b/src/components/Hotkey.vue new file mode 100644 index 0000000..c5790e3 --- /dev/null +++ b/src/components/Hotkey.vue @@ -0,0 +1,58 @@ + + + + + + + diff --git a/src/features/hotkey.tsx b/src/features/hotkey.tsx index bfb958f..b716f9a 100644 --- a/src/features/hotkey.tsx +++ b/src/features/hotkey.tsx @@ -13,6 +13,7 @@ import type { import { processComputable } from "util/computed"; import { createLazyProxy } from "util/proxies"; import { shallowReactive, unref } from "vue"; +import HotkeyVue from "components/Hotkey.vue"; export const hotkeys: Record = shallowReactive({}); export const HotkeyType = Symbol("Hotkey"); @@ -102,8 +103,8 @@ registerInfoComponent(

Hotkeys

{keys.map(hotkey => ( -
- {hotkey?.key}: {hotkey?.description} +
+ {hotkey?.description}
))}