This commit is contained in:
2023-07-07 12:45:21 +02:00
parent d63cf541fb
commit bb3861272c
11 changed files with 177 additions and 48 deletions

View File

@@ -15,8 +15,12 @@
<th>{phrase}</th>
<td>
{#each actions as action}
{@const {id, title, symbol} = KEYMAP_CODES[action]}
<abbr {title}>{symbol || id}</abbr>
{@const keyInfo = KEYMAP_CODES[action]}
{#if keyInfo}
<abbr title={keyInfo.title}>{keyInfo.symbol || keyInfo.id}</abbr>
{:else}
<pre>{action}</pre>
{/if}
{/each}
</td>
</tr>

View File

@@ -1,5 +1,5 @@
<script>
import {initSerial, serialPort} from "$lib/serial/connection.js"
import {initSerial, serialPort} from "$lib/serial/connection"
import Terminal from "$lib/components/Terminal.svelte"
import {browser} from "$app/environment"
</script>