fix: dynamic mappings are not displayed

This commit is contained in:
2024-01-03 14:21:13 +01:00
parent a1fe6f7110
commit fd612eda1d
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
export let display: "inline-keys" | "keys" = "inline-keys"
$: info = typeof action === "number" ? KEYMAP_CODES[action] ?? {code: action} : action
$: dynamicMapping = info.keyCode && $osLayout[JSON.stringify([info.keyCode])]
$: dynamicMapping = info.keyCode && $osLayout.get(info.keyCode)
$: tooltip =
(info.title ?? info.id ?? `0x${info.code.toString(16)}`) +