forked from profectus/Profectus
hotkey tweaks
This commit is contained in:
parent
a4e74a9c5d
commit
d02b7294a1
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue