hotkey tweaks

This commit is contained in:
thepaperpilot 2022-12-19 07:29:28 -06:00
parent a4e74a9c5d
commit d02b7294a1

View file

@ -13,7 +13,7 @@ import type {
import { processComputable } from "util/computed"; import { processComputable } from "util/computed";
import { createLazyProxy } from "util/proxies"; import { createLazyProxy } from "util/proxies";
import { shallowReactive, unref } from "vue"; import { shallowReactive, unref } from "vue";
import HotkeyVue from "components/Hotkey.vue"; import Hotkey from "components/Hotkey.vue";
export const hotkeys: Record<string, GenericHotkey | undefined> = shallowReactive({}); export const hotkeys: Record<string, GenericHotkey | undefined> = shallowReactive({});
export const HotkeyType = Symbol("Hotkey"); export const HotkeyType = Symbol("Hotkey");
@ -103,8 +103,8 @@ registerInfoComponent(
<br /> <br />
<h4>Hotkeys</h4> <h4>Hotkeys</h4>
{keys.map(hotkey => ( {keys.map(hotkey => (
<div v-if={hotkey !== undefined}> <div>
<HotkeyVue hotkey={hotkey as GenericHotkey} /> {hotkey?.description} <Hotkey hotkey={hotkey as GenericHotkey} /> {hotkey?.description}
</div> </div>
))} ))}
</div> </div>