feat: add generid 103-key layout for CCX users, fixes #12

This commit is contained in:
2023-11-14 23:37:06 +01:00
parent 3634264af3
commit acd58646f6
4 changed files with 149 additions and 5 deletions

View File

@@ -21,7 +21,7 @@
</script>
{#each positions as position, layer}
{@const {action: actionId, isApplied} = $layout[layer][key.id]}
{@const {action: actionId, isApplied} = $layout[layer][key.id] ?? {action: 0, isApplied: true}}
{@const {code, icon, id} = KEYMAP_CODES[actionId] ?? {code: actionId}}
{@const isActive = layer === $activeLayer}
{@const direction = [(middle[0] - margin * 3) / position[0], (middle[1] - margin * 3) / position[1]]}